main/inc/lib/sessionmanager.lib.php 1 location
|
@@ 5627-5630 (lines=4) @@
|
| 5624 |
|
return $count; |
| 5625 |
|
} |
| 5626 |
|
|
| 5627 |
|
if (!empty($column) && !empty($direction)) { |
| 5628 |
|
$column = str_replace('u.', '', $column); |
| 5629 |
|
$sql .= " ORDER BY $column $direction "; |
| 5630 |
|
} |
| 5631 |
|
|
| 5632 |
|
$sql .= $limitCondition; |
| 5633 |
|
$result = Database::query($sql); |
main/inc/lib/usermanager.lib.php 1 location
|
@@ 4478-4482 (lines=5) @@
|
| 4475 |
|
$orderBy .= " ORDER BY lastname, firstname "; |
| 4476 |
|
} |
| 4477 |
|
|
| 4478 |
|
if (!empty($column) && !empty($direction)) { |
| 4479 |
|
// Fixing order due the UNIONs |
| 4480 |
|
$column = str_replace('u.', '', $column); |
| 4481 |
|
$orderBy = " ORDER BY $column $direction "; |
| 4482 |
|
} |
| 4483 |
|
} |
| 4484 |
|
|
| 4485 |
|
$sql .= $orderBy; |