Code Context if(count($query['specialite'])==1 && $commandez_cuisine==null) {
$nom_spec = $this->Restaurant->Specialite->find('first', array('recursive'=>-1, 'conditions'=>array('Specialite.id'=>$query['specialite'])));
$commandez_cuisine = $nom_spec['Specialite']['nom'];
$club = null
$specialite = null
$query = array(
'specialite' => array(
(int) 0 => '34'
)
)
$quartier_id = null
$commandez_cuisine = null
$conditions = array(
'Restaurant.actif' => (int) 1,
'Restaurant.deleted' => (int) 0,
'Restaurant.annuaire' => (int) 0
)
$join_zone = null
$join_specialite = null
$join_ouvert = array(
'type' => 'left',
'table' => 'horaires',
'conditions' => array(
(int) 0 => '
Restaurant.id = horaires.restaurant_id AND horaires.entreprise_id=0 AND horaires.ramadan=0 AND
horaires.jour = 'Vendredi' AND (
(horaires.debut<='04:38:10' AND horaires.fin>='04:38:10') OR
(horaires.debut2<='04:38:10' AND horaires.fin2>='04:38:10') OR ('04:38:10' >= '00:00' AND '04:38:10'<= horaires.midnight)
)'
)
)
$join_comment = array(
'type' => 'left',
'table' => 'comments',
'conditions' => array(
(int) 0 => 'Restaurant.id = comments.restaurant_id',
(int) 1 => 'comments.approved=1'
)
)
$join_promo = array(
'type' => 'left',
'table' => 'promotions',
'conditions' => array(
(int) 0 => 'Restaurant.id = promotions.restaurant_id',
(int) 1 => 'promotions.actif=1',
(int) 2 => 'promotions.date_fin>="2024-03-29"',
(int) 3 => 'promotions.date_debut<="2024-03-29"',
'promotions.club' => (int) 0,
'promotions.pro' => (int) 0
)
)
$nom_spec = array()
RestaurantsController::index() - APP/Controller/RestaurantsController.php, line 110
ReflectionMethod::invokeArgs() - [internal], line ??
Controller::invokeAction() - CORE/Cake/Controller/Controller.php, line 490
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 193
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 167
[main] - APP/webroot/index.php, line 108