[Vtigercrm-commits] [vtiger-commits] r5384 - in /vtigercrm/trunk/modules/Emails: mail.php mailsend.php

vtigercrm-commits at vtiger.fosslabs.com vtigercrm-commits at vtiger.fosslabs.com
Wed Apr 26 09:04:14 EDT 2006


Author: richie
Date: Wed Apr 26 07:04:09 2006
New Revision: 5384

Log:
PearDatabase::quote replaced with $adb->quote

Modified:
    vtigercrm/trunk/modules/Emails/mail.php
    vtigercrm/trunk/modules/Emails/mailsend.php

Modified: vtigercrm/trunk/modules/Emails/mail.php
==============================================================================
--- vtigercrm/trunk/modules/Emails/mail.php (original)
+++ vtigercrm/trunk/modules/Emails/mail.php Wed Apr 26 07:04:09 2006
@@ -119,7 +119,7 @@
 	global $adb;
 	$adb->println("Inside the function addSignature");
 
-	$sign = $adb->query_result($adb->query("select signature from users where user_name=".PearDatabase::quote($fromname)),0,"signature");
+	$sign = $adb->query_result($adb->query("select signature from users where user_name=".$adb->quote($fromname)),0,"signature");
 	if($sign != '')
 	{
 		$contents .= '<br><br><font color=darkgrey>'.$sign.'</font>';
@@ -339,7 +339,7 @@
 	if($parentid != '')
 	{
 	        //$query = 'select * from '.$tablename.' where '.$idname.' = '.$parentid;
-	        $query = 'select * from '.$tablename.' where '. $idname.' = '.PearDatabase::quote($parentid);
+	        $query = 'select * from '.$tablename.' where '. $idname.' = '.$adb->quote($parentid);
 	        $mailid = $adb->query_result($adb->query($query),0,$first_email);
 		$mailid2 = $adb->query_result($adb->query($query),0,$second_email);
 	}

Modified: vtigercrm/trunk/modules/Emails/mailsend.php
==============================================================================
--- vtigercrm/trunk/modules/Emails/mailsend.php (original)
+++ vtigercrm/trunk/modules/Emails/mailsend.php Wed Apr 26 07:04:09 2006
@@ -103,7 +103,7 @@
 	{
 		$temp=$realid[$j];
 		//$myquery='Select columnname from field where fieldid='.$temp;
-		$myquery='Select columnname from field where fieldid='.PearDatabase::quote($temp);
+		$myquery='Select columnname from field where fieldid='.$adb->quote($temp);
 		$fresult=$adb->query($myquery);			
 		if ($pmodule=='Contacts')
 		{





More information about the vtigercrm-commits mailing list