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
original and altered file