phpgroupware-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Phpgroupware-cvs] felamimail/inc class.socaching.inc.php


From: Sigurd Nes
Subject: [Phpgroupware-cvs] felamimail/inc class.socaching.inc.php
Date: Tue, 27 Feb 2007 13:15:36 +0000

CVSROOT:        /sources/phpgroupware
Module name:    felamimail
Changes by:     Sigurd Nes <sigurdne>   07/02/27 13:15:36

Modified files:
        inc            : class.socaching.inc.php 

Log message:
        postgresfriendly

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/felamimail/inc/class.socaching.inc.php?cvsroot=phpgroupware&r1=1.8&r2=1.9

Patches:
Index: class.socaching.inc.php
===================================================================
RCS file: /sources/phpgroupware/felamimail/inc/class.socaching.inc.php,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -b -r1.8 -r1.9
--- class.socaching.inc.php     21 Dec 2006 12:34:39 -0000      1.8
+++ class.socaching.inc.php     27 Feb 2007 13:15:36 -0000      1.9
@@ -11,7 +11,7 @@
        * Free Software Foundation; either version 2 of the License, or (at 
your    *
        * option) any later version.                                            
    *
        
\***************************************************************************/
-       /* $Id: class.socaching.inc.php,v 1.8 2006/12/21 12:34:39 sigurdne Exp 
$ */
+       /* $Id: class.socaching.inc.php,v 1.9 2007/02/27 13:15:36 sigurdne Exp 
$ */
 
        class socaching
        {
@@ -29,6 +29,7 @@
                        $this->accountid        = $_accountid;
                        
                        $this->db               = $GLOBALS['phpgw']->db;
+                       $this->like     = $this->db->like;
                }
                
                function addToCache($_data)
@@ -73,13 +74,13 @@
                                switch($key)
                                {
                                        case "from":
-                                                       $filter .= 
"(sender_name like '%$value%' or sender_address like '%$value%') ";
+                                                       $filter .= 
"(sender_name {$this->like} '%$value%' or sender_address {$this->like} 
'%$value%') ";
                                                break;
                                        case "to":
-                                                       $filter .= "(to_name 
like '%$value%' or to_address like '%$value%') ";
+                                                       $filter .= "(to_name 
{$this->like} '%$value%' or to_address {$this->like} '%$value%') ";
                                                break;
                                        case "subject":
-                                                       $filter .= "subject 
like '%$value%' ";
+                                                       $filter .= "subject 
{$this->like} '%$value%' ";
                                                break;
                                }
                        }
@@ -174,13 +175,13 @@
                                        switch($key)
                                        {
                                                case "from":
-                                                               $filter .= 
"(sender_name like '%$value%' or sender_address like '%$value%') ";
+                                                               $filter .= 
"(sender_name {$this->like} '%$value%' or sender_address {$this->like} 
'%$value%') ";
                                                        break;
                                                case "to":
-                                                               $filter .= 
"(to_name like '%$value%' or to_address like '%$value%') ";
+                                                               $filter .= 
"(to_name {$this->like} '%$value%' or to_address {$this->like} '%$value%') ";
                                                        break;
                                                case "subject":
-                                                               $filter .= 
"subject like '%$value%' ";
+                                                               $filter .= 
"subject {$this->like} '%$value%' ";
                                                        break;
                                        }
                                }




reply via email to

[Prev in Thread] Current Thread [Next in Thread]