Menu

#101 RSS: Fix array_shift warning

closed-duplicate
None
5
2007-01-22
2007-01-18
Tim Gerundt
No

This patch fix a problem with RSS, when you have no mails in your inbox. You get the following warning:

array_shift(): The argument should be an array in <serverpath>\nocc\rss.php on line 114

Problem is, that $tab_mail_bak not get initialized with array().

-------------------------8<-------------------------
--- rss.php.org Thu Jan 18 22:50:31 2007
+++ rss.php Thu Jan 18 23:12:26 2007
@@ -57,8 +57,8 @@
$tab_mail = array();
if ($pop->num_msg() > 0) {
$tab_mail = inbox($pop, 0, $ev);
- $tab_mail_bak = $tab_mail;
}
+ $tab_mail_bak = $tab_mail;

if (NoccException::isException($ev)) {
require ('./html/error.php');
------------------------->8-------------------------

Greetings,
Tim

Discussion

  • Tim Gerundt

    Tim Gerundt - 2007-01-18

    original and altered file

     
  • Anonymous

    Anonymous - 2007-01-22
    • assigned_to: nobody --> goddess_skuld
    • status: open --> closed-duplicate
     

Log in to post a comment.

MongoDB Logo MongoDB