您的位置:BugFree > 论坛 > 技术支持 > BugFree Discussion[BugFree讨论] > In the NoticeBug.php
2007-06-21 23:49:38 In the NoticeBug.php
#1

访问次数 :
注册日期 : 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
回帖
2007-06-22 09:03:00
#2
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()
}
回帖
2007-06-22 20:54:59
#3

访问次数 :
注册日期 : 70-01-01 07:00
上次访问 : 70-01-01 07:00
Thank you!
回帖