[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] property/inc/class.sob_account.inc.php, 1.3.2.4
From: |
nomail |
Subject: |
[Phpgroupware-cvs] property/inc/class.sob_account.inc.php, 1.3.2.4 |
Date: |
Tue, 7 Dec 2004 10:04:28 +0100 |
Update of /property/inc
Modified Files:
Branch: proposed-0_9_18-branch
class.sob_account.inc.php
date: 2004/12/07 09:04:28; author: sigurdne; state: Exp; lines: +4 -2
Log Message:
Using ilike if pgsql
=====================================================================
Index: property/inc/class.sob_account.inc.php
diff -u property/inc/class.sob_account.inc.php:1.3.2.3
property/inc/class.sob_account.inc.php:1.3.2.4
--- property/inc/class.sob_account.inc.php:1.3.2.3 Thu Nov 18 22:12:08 2004
+++ property/inc/class.sob_account.inc.php Tue Dec 7 09:04:28 2004
@@ -34,6 +34,8 @@
$this->db = $GLOBALS['phpgw']->db;
$this->db2 = $this->db;
$this->account =
$GLOBALS['phpgw_info']['user']['account_id'];
+ $this->socommon =
CreateObject($this->currentapp.'.socommon');
+ $this->like = $this->socommon->like;
}
function read($data)
@@ -71,7 +73,7 @@
$query = ereg_replace("'",'',$query);
$query = ereg_replace('"','',$query);
- $querymethod = " where id LIKE '%$query%' or
descr LIKE '%$query%'";
+ $querymethod = " where id $this->like
'%$query%' or descr $this->like '%$query%'";
}
$sql = "SELECT * FROM $table $querymethod";
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] property/inc/class.sob_account.inc.php, 1.3.2.4,
nomail <=