On PHP 7.1.30, and reporting all errors, I get this in my logs:
Code:
PHP Notice: Undefined variable: notes_customer_result in /xxx/ADMIN/includes/init_includes/init_notes_notifier.php on line 67
Code:
PHP Notice: Trying to get property of non-object in /xxx/ADMIN/includes/init_includes/init_notes_notifier.php on line 67
This is line 67:
PHP Code:
if(isset($_GET['cID']) && ($_GET['cID'] == $notes_active->customers_id) && !isset($_GET['gID']) ||(($notes_customer_result->fields['customers_id'] > 0) && ($notes_customer_result->fields['customers_id'] == $notes_active->customers_id)) && !isset($_GET['gID']))
I have been looking to see what I need to change to eliminate these notices, but cannot figure this one out. I have tried declaring the $notes_customer_result as a global variable which does eliminate the first notice, but am not sure what is a non-object in the line to figure out what to change to make the notices go away.
Bookmarks