Data\SimpleQuery: don't fail on missing columns...
...for now
This commit is contained in:
parent
c0343a0dae
commit
40c4562fe4
|
@ -210,7 +210,7 @@ class SimpleQuery implements QueryInterface, Queryable
|
|||
$dir = $this->order[$col_num][1];
|
||||
// TODO: throw Exception if column is missing
|
||||
//$res = strnatcmp(strtolower($a->$col), strtolower($b->$col));
|
||||
$res = strcmp(strtolower($a->$col), strtolower($b->$col));
|
||||
$res = @strcmp(strtolower($a->$col), strtolower($b->$col));
|
||||
if ($res === 0) {
|
||||
// return $this->compare($a, $b, $col_num++);
|
||||
|
||||
|
|
Loading…
Reference in New Issue