[Vtigercrm-commits] [vtiger-commits] r6714 - /vtigercrm/trunk/modules/Webmails/ListView.php

vtigercrm-commits at vtiger.fosslabs.com vtigercrm-commits at vtiger.fosslabs.com
Mon May 29 16:26:51 EDT 2006


Author: mmbrich
Date: Mon May 29 14:26:50 2006
New Revision: 6714

Log:
fixes for empty mailbox

Modified:
    vtigercrm/trunk/modules/Webmails/ListView.php

Modified: vtigercrm/trunk/modules/Webmails/ListView.php
==============================================================================
--- vtigercrm/trunk/modules/Webmails/ListView.php (original)
+++ vtigercrm/trunk/modules/Webmails/ListView.php Mon May 29 14:26:50 2006
@@ -225,7 +225,8 @@
 	return $listview_entries[$num];
 }
 
-
+$displayed_msgs=0;
+$new_msgs=0;
 if($numEmails <= 0)
 	$listview_entries[0][] = '<td colspan="6" width="100%" align="center"><b>No Emails In This Folder</b></td>';
 else {
@@ -245,8 +246,6 @@
 
 // MAIN LOOP
 // Main loop to create listview entries
-$displayed_msgs=0;
-$new_msgs=0;
 $i=1;
 while ($i<$c) {
 	if(is_array($searchlist)) {
@@ -261,7 +260,7 @@
   	$i++;
   	$start_message--;
 }
-
+}
 
 // Build folder list and move_to dropdown box
 $list = imap_getmailboxes($mbox, "{".$imapServerAddress."}", "*");
@@ -300,7 +299,6 @@
 
 imap_close($mbox);
 global $current_user;
-}
 
 $smarty = new vtigerCRM_Smarty;
 $smarty->assign("USERID", $current_user->id);





More information about the vtigercrm-commits mailing list