The following warnings occurred:
Warning [2] Undefined variable $unreadreports - Line: 26 - File: global.php(961) : eval()'d code PHP 8.2.25 (Linux)
File Line Function
/global.php(961) : eval()'d code 26 errorHandler->error
/global.php 961 eval
/showthread.php 28 require_once





× This forum is read only. As of July 23, 2019, the UserSpice forums have been closed. To receive support, please join our Discord by clicking here. Thank you!

  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
hasPerm
#1
Hello,

Today is the first time I've tried to use hasPerm, and it didn't turn out well. I am wondering if maybe there is something wrong, here is the error:
Notice: Undefined variable: master_account in /home/aircentralized/public_html/templates/users/helpers/us_helpers.php on line 788

Warning: in_array() expects parameter 2 to be array, null given in /home/aircentralized/public_html/templates/users/helpers/us_helpers.php on line 788

Thank you.
  Reply
#2
It looks like $master_array needs to be declared as a global, like $user is at the start of the function. I can't test it because I've replaced the permissions with my own system, but let me know if that doesn't fix it!
  Reply
#3
Yeah. There was an update that asked you to add it to your init.php. I don't remember which one.
  Reply
#4
I'll have to dig through and find it - I must have missed that.
  Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)