[Vtigercrm-commits] [vtiger-commits] r10483 - /vtigercrm/branches/5.0.3/modules/Webmails/ListView.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Tue Mar 20 05:22:44 EDT 2007
Author: richie
Date: Tue Mar 20 03:22:36 2007
New Revision: 10483
Log:
fixes the search issue which was giving irrelevant results if the data was not found
Modified:
vtigercrm/branches/5.0.3/modules/Webmails/ListView.php
Modified: vtigercrm/branches/5.0.3/modules/Webmails/ListView.php
==============================================================================
--- vtigercrm/branches/5.0.3/modules/Webmails/ListView.php (original)
+++ vtigercrm/branches/5.0.3/modules/Webmails/ListView.php Tue Mar 20 03:22:36 2007
@@ -222,7 +222,7 @@
$start_message=($numEmails-(($start-1)*$mails_per_page));
}
-$c=$numEmails;
+//$c=$numEmails;
if(!isset($_REQUEST["search"])) {
$numPages = ceil($numEmails/$MailBox->mails_per_page);
@@ -287,9 +287,11 @@
$searchstring = $_REQUEST["search_type"].' "'.$_REQUEST["search_input"].'"';
//echo $searchstring."<br>";
$searchlist = imap_search($MailBox->mbox,$searchstring);
- $num_searches = count($searchlist);
-
+ if(is_array($searchlist))
+ {
+ $num_searches = count($searchlist);
$c=$numEmails;
+ }
}
flush();
More information about the vtigercrm-commits
mailing list