I was making some changes to my local copy of your site (version 3.1.0) and I turned on error reporting, I got an unexpected messages from the functions.php file...
Notice: Undefined variable: permissions in C:\xampp\htdocs\froggit.local\core\functions.php on line 737
I have checked the code and it appears to be the line...
$permissions |= $_SESSION['vdb']['permissions']['all'];
I understand that this line is checking that the permissions are either correct for the user or set as 'all'. however I can not find any other reference in the sites code to a variable called $permissions so how is this variable being populated? Is it safe to comment out the references to $permissions in the functions.php file to stop the warnings or am I missing something?
Thanks for your help I am new to php coding and want to understand how this works,
Log in to post a comment.