Skip to Content Skip to Menu

error. Warning: Invalid argument supplied for fore

  • varst
  • varst
  • OFFLINE
  • Posts: 7
  • Thanks: 0
  • Karma: 0
14 years 11 months ago #118087 by varst
Hi! I have one error in INBOX, what does it mean?

Warning: Invalid argument supplied for foreach() in /home/..../public_html/components/com_uddeim/includes.php on line 644


code:
640 $database->setQuery($sql);
641 $castaways=$database->loadObjectList();
642
643 $loopcounter=0;
644 foreach($castaway as $castaway) {
645 // has this user already received a reminder?
646// $var_remindersent = uddeIMgetEMNremindersent($castaway->toid);

Please Log in or Create an account to join the conversation.

  • slabbi
  • slabbi
  • OFFLINE
  • Posts: 3709
  • Thanks: 250
  • Karma: 153
14 years 11 months ago #118095 by slabbi
Well, it seems that uddeIM tries to send message reminders without having entries in this list.

Please add two lines:

[code:1] $database->setQuery($sql);
$castaways=$database->loadObjectList();
if (!$castaways)
$castaways = Array();
[/code:1]

That should fix your problem.

uddeIM & uddePF Development
CB Language Workgroup
CB 3rd Party Developer

Please Log in or Create an account to join the conversation.

Moderators: beatnantslabbikrileon
Powered by Kunena Forum