diff options
author | mattab <matthieu.aubry@gmail.com> | 2014-12-05 15:19:33 +0300 |
---|---|---|
committer | mattab <matthieu.aubry@gmail.com> | 2014-12-05 15:19:33 +0300 |
commit | dac71ca1347dbde11618e99b2dfe589d3d1812b8 (patch) | |
tree | e88740ab92a318d69999c6c0bf9401067052ee01 /core/DataAccess | |
parent | 269ffeb4b71926fa4973aa0075943dcc2426bd08 (diff) |
Only set order by if it's set, otherwise we ORDER BY NULL
Diffstat (limited to 'core/DataAccess')
-rw-r--r-- | core/DataAccess/LogQueryBuilder.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/DataAccess/LogQueryBuilder.php b/core/DataAccess/LogQueryBuilder.php index b062b91b3f..ac55ccf454 100644 --- a/core/DataAccess/LogQueryBuilder.php +++ b/core/DataAccess/LogQueryBuilder.php @@ -189,7 +189,7 @@ class LogQueryBuilder $innerOrderBy = "NULL"; // Only when there is a LIMIT then we can apply to the inner query the same ORDER BY as the parent query - if($innerLimit) { + if($innerLimit && $orderBy) { $innerOrderBy = $orderBy; } |