mirror of
git://f0xx.org/android_cast
synced 2026-07-29 04:18:09 +03:00
ra
This commit is contained in:
@@ -669,7 +669,7 @@ final class RemoteAccessRepository {
|
|||||||
$params[] = $companyId;
|
$params[] = $companyId;
|
||||||
}
|
}
|
||||||
$sql .= Database::isMysql()
|
$sql .= Database::isMysql()
|
||||||
? ' ORDER BY last_seen_at DESC NULLS LAST, device_id ASC'
|
? ' ORDER BY (last_seen_at IS NULL), last_seen_at DESC, device_id ASC'
|
||||||
: ' ORDER BY datetime(COALESCE(last_seen_at, \'1970-01-01\')) DESC, device_id ASC';
|
: ' ORDER BY datetime(COALESCE(last_seen_at, \'1970-01-01\')) DESC, device_id ASC';
|
||||||
$st = Database::pdo()->prepare($sql);
|
$st = Database::pdo()->prepare($sql);
|
||||||
$st->execute($params);
|
$st->execute($params);
|
||||||
|
|||||||
Reference in New Issue
Block a user