[Vtigercrm-commits] [vtiger-commits] r6719 - /vtigercrm/trunk/modules/Webmails/WebmailsAjax.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Mon May 29 18:16:16 EDT 2006
Author: mmbrich
Date: Mon May 29 16:16:15 2006
New Revision: 6719
Log:
more mbox count fixes
Modified:
vtigercrm/trunk/modules/Webmails/WebmailsAjax.php
Modified: vtigercrm/trunk/modules/Webmails/WebmailsAjax.php
==============================================================================
--- vtigercrm/trunk/modules/Webmails/WebmailsAjax.php (original)
+++ vtigercrm/trunk/modules/Webmails/WebmailsAjax.php Mon May 29 16:16:15 2006
@@ -76,8 +76,11 @@
if($val == sizeof($search))
$boxes[$i]["newmsgs"] = 0;
elseif($val < sizeof($search)) {
- $boxes[$i]["newmsgs"] = (sizeof($search) - $val);
+ $boxes[$i]["newmsgs"] = (sizeof($search)-$val);
$_SESSION["mailboxes"][$key] = (sizeof($search));
+ } else {
+ $boxes[$i]["newmsgs"] = 0;
+ $_SESSION["mailboxes"][$key] = 0;
}
$i++;
}
More information about the vtigercrm-commits
mailing list