[Vtigercrm-commits] [vtiger-commits] r5315 - /vtigercrm/trunk/modules/Emails/mail.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Tue Apr 25 03:01:59 EDT 2006
Author: richie
Date: Tue Apr 25 01:01:53 2006
New Revision: 5315
Log:
Changed PearDatabase::qstr to $adb->qstr. Fixes #206.
Modified:
vtigercrm/trunk/modules/Emails/mail.php
Modified: vtigercrm/trunk/modules/Emails/mail.php
==============================================================================
--- vtigercrm/trunk/modules/Emails/mail.php (original)
+++ vtigercrm/trunk/modules/Emails/mail.php Tue Apr 25 01:01:53 2006
@@ -88,7 +88,8 @@
if($val != '')
{
//$sql = "select email1, email2, yahoo_id from users where ".$name." = '".$val."'";
- $sql = "select email1, email2, yahoo_id from users where ".$name." = ".PearDatabase::quote($val);
+ //done to resolve the PHP5 specific behaviour
+ $sql = "select email1, email2, yahoo_id from users where ".$name." = ".$adb->quote($val);
$res = $adb->query($sql);
$email = $adb->query_result($res,0,'email1');
if($email == '')
More information about the vtigercrm-commits
mailing list