[Vtigercrm-commits] [vtiger-commits] r9643 - /vtigercrm/branches/5.0.2/modules/HelpDesk/ConvertAsFAQ.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Tue Oct 17 02:15:25 EDT 2006
Author: richie
Date: Tue Oct 17 00:15:16 2006
New Revision: 9643
Log:
* Added condition to avoid COMMENTS string in answer when there is no comments for ticket
Modified:
vtigercrm/branches/5.0.2/modules/HelpDesk/ConvertAsFAQ.php
Modified: vtigercrm/branches/5.0.2/modules/HelpDesk/ConvertAsFAQ.php
==============================================================================
--- vtigercrm/branches/5.0.2/modules/HelpDesk/ConvertAsFAQ.php (original)
+++ vtigercrm/branches/5.0.2/modules/HelpDesk/ConvertAsFAQ.php Tue Oct 17 00:15:16 2006
@@ -49,7 +49,9 @@
$sql = "select ticketid, comments, createdtime from vtiger_ticketcomments where ticketid=".$_REQUEST['record'];
$res = $adb->query($sql);
$noofrows = $adb->num_rows($res);
- $answer .= '\r\n\r\nCOMMENTS:';
+
+ if($noofrows > 0)
+ $answer .= '\r\n\r\nCOMMENTS:';
for($i=0; $i < $noofrows; $i++)
{
$comments = $adb->query_result($res,$i,'comments');
More information about the vtigercrm-commits
mailing list