Duplicating Restruants not working #4750
This commit is contained in:
parent
82fbf156c4
commit
e7e03ef539
@ -247,12 +247,15 @@ class Crunchbutton_Restaurant extends Cana_Table_Trackchange {
|
|||||||
public function activeDrivers(){
|
public function activeDrivers(){
|
||||||
$community = $this->community()->get( 0 );
|
$community = $this->community()->get( 0 );
|
||||||
$activeDrivers = 0;
|
$activeDrivers = 0;
|
||||||
|
if( $community->id_community ){
|
||||||
$drivers = $community->getDriversOfCommunity();
|
$drivers = $community->getDriversOfCommunity();
|
||||||
foreach( $drivers as $driver ){
|
foreach( $drivers as $driver ){
|
||||||
if( $driver->isWorking() ){
|
if( $driver->isWorking() ){
|
||||||
$activeDrivers++;
|
$activeDrivers++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return $activeDrivers;
|
return $activeDrivers;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user