summaryrefslogtreecommitdiff
path: root/framework/Data/Common
diff options
context:
space:
mode:
authorctrlaltca@gmail.com <>2011-06-20 13:30:47 +0000
committerctrlaltca@gmail.com <>2011-06-20 13:30:47 +0000
commita57ead00a69cd5240dd7549fa3a7da8d4e717749 (patch)
tree79f1c6af4172564fcdc12dea354d43adc71d8ebc /framework/Data/Common
parent6dca6e1b868f5456f3151c002113705405099530 (diff)
further polishing
Diffstat (limited to 'framework/Data/Common')
-rw-r--r--framework/Data/Common/TDbCommandBuilder.php4
1 files changed, 1 insertions, 3 deletions
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