Notice (8): Undefined index: type [APP/Controller/NotificationsController.php, line 112]Code Context
public function notification_count(){
$rnl = $this->read_notifications_list($_POST['type']);
NotificationsController::notification_count() - APP/Controller/NotificationsController.php, line 112
ReflectionMethod::invokeArgs() - [internal], line ??
Controller::invokeAction() - CORE/Cake/Controller/Controller.php, line 499
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 193
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 167
require - APP/webroot/index.php, line 121
[main] - ROOT/index.php, line 41
Notice (8): Undefined variable: condition [APP/Controller/NotificationsController.php, line 298]Code Context if($type==1) $condition = 'user_id = '.$_SESSION['user']['id'];
if($type==2) $condition = 'user_id = '.$_SESSION['admin']['id'];
$rnl = $this->Notification->details('read_ids','read_notifications rn',$condition);
$type = null
NotificationsController::read_notifications_list() - APP/Controller/NotificationsController.php, line 298
NotificationsController::notification_count() - APP/Controller/NotificationsController.php, line 112
ReflectionMethod::invokeArgs() - [internal], line ??
Controller::invokeAction() - CORE/Cake/Controller/Controller.php, line 499
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 193
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 167
require - APP/webroot/index.php, line 121
[main] - ROOT/index.php, line 41