diff options
Diffstat (limited to 'framework/Data/Common')
-rw-r--r-- | framework/Data/Common/TDbCommandBuilder.php | 4 |
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 |