Warning (2): Trying to access array offset on false [APP/Plugin/Property/Controller/PropertiesController.php, line 610]Code Context<?php $are_friend = $this->Friend->areFriends($uid, $property['Property']['user_id']);
<?php // candidate,admin, owner , approve
<?php if ($property['Property']['status'] == P_STATUS_APPROVED || $uid == $property['User']['id'] || $viewer['Role']['is_admin']) {
PropertiesController::view() - APP/Plugin/Property/Controller/PropertiesController.php, line 610
ReflectionMethod::invokeArgs() - [internal], line ??
Controller::invokeAction() - CORE/Cake/Controller/Controller.php, line 500
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 193
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 167
[main] - APP/webroot/index.php, line 80
Warning (2): Trying to access array offset on null [APP/Plugin/Property/Controller/PropertiesController.php, line 610]Code Context<?php $are_friend = $this->Friend->areFriends($uid, $property['Property']['user_id']);
<?php // candidate,admin, owner , approve
<?php if ($property['Property']['status'] == P_STATUS_APPROVED || $uid == $property['User']['id'] || $viewer['Role']['is_admin']) {
PropertiesController::view() - APP/Plugin/Property/Controller/PropertiesController.php, line 610
ReflectionMethod::invokeArgs() - [internal], line ??
Controller::invokeAction() - CORE/Cake/Controller/Controller.php, line 500
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 193
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 167
[main] - APP/webroot/index.php, line 80