From a57ead00a69cd5240dd7549fa3a7da8d4e717749 Mon Sep 17 00:00:00 2001 From: "ctrlaltca@gmail.com" <> Date: Mon, 20 Jun 2011 13:30:47 +0000 Subject: further polishing --- framework/Data/Common/TDbCommandBuilder.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'framework/Data/Common') diff --git a/framework/Data/Common/TDbCommandBuilder.php b/framework/Data/Common/TDbCommandBuilder.php index 0dc13e7e..ee58d4b4 100644 --- a/framework/Data/Common/TDbCommandBuilder.php +++ b/framework/Data/Common/TDbCommandBuilder.php @@ -108,7 +108,7 @@ class TDbCommandBuilder extends TComponent foreach($ordering as $name => $direction) { $direction = strtolower($direction) == 'desc' ? 'DESC' : 'ASC'; - if(strpos($name, '(') && strpos($name, ')')) { + if(false !== strpos($name, '(') && false !== strpos($name, ')')) { // key is a function (bad practice, but we need to handle it) $key = $name; } else { @@ -505,5 +505,3 @@ class TDbCommandBuilder extends TComponent return false; } } - -?> \ No newline at end of file -- cgit v1.2.3