访问次数 : 注册日期 : 70-01-01 07:00 上次访问 : 70-01-01 07:00 |
Hello Mr. Lee One line 12, $BugList = bugGetInfo("Max"," WHERE OpenedDate = '2007-06-20' ORDER BY LastEditedDate DESC"); If the $BugList return as empty, I got message, Warning: Invalid argument supplied for foreach() in C:WebserverWWWPONoticeBug.php on line 15 Warning: Invalid argument supplied for foreach() in C:WebserverWWWPONoticeBug.php on line 24 Could you please advise me how to deal with this? Thank you |
回帖 |
wwccss 访问次数 : 593 注册日期 : 05-05-01 10:08 上次访问 : 10-07-19 11:44 |
You may judge the BugList array before foreach cycle,like this: if(!empty($BugList)) { foreach() } |
回帖 |
访问次数 : 注册日期 : 70-01-01 07:00 上次访问 : 70-01-01 07:00 |
Thank you! |
回帖 |