mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 00:53:50 +00:00
Contacts oder by last mod date null last.
This commit is contained in:
@@ -178,7 +178,7 @@ else {
|
||||
$sql .= "order by ".$order_by." ".$order." ";
|
||||
}
|
||||
else {
|
||||
$sql .= "order by last_mod_date desc ";
|
||||
$sql .= "order by case when last_mod_date is null then 1 else 0, last_mod_date desc ";
|
||||
}
|
||||
$sql .= "limit ".$rows_per_page." offset ".$offset." ";
|
||||
$prep_statement = $db->prepare(check_sql($sql));
|
||||
|
||||
Reference in New Issue
Block a user