The following warnings occurred:
Warning [2] Undefined variable $unreadreports - Line: 26 - File: global.php(961) : eval()'d code PHP 8.1.2-1ubuntu2.14 (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
Invalid Argument Foreach (Admin-pages)
#3
Checked both files, I haven't modified anything in them. Went back through my repos commit history to see if I accidentally made a change I shouldn't have, couldn't find anything. Though I am sure I have done something somewhere haha, I would assume this wouldn't just appear out of nowhere.

I have solved it (I think) though. Just made a small re-write to the argument and the error has disappeared and everything still appears to be functioning as intended. Here's my new foreach statement:

Code:
foreach ($paths as $path){
Code:
$rows=getPathPhpFiles($abs_us_root,$us_url_root,$path);
Code:
foreach ((array)$rows as $row){
Code:
$pages[]=$row;
Code:
}
Code:
}
  Reply


Messages In This Thread
Invalid Argument Foreach (Admin-pages) - by winterswolf - 11-28-2016, 10:36 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)