1
0
mirror of git://f0xx.org/android_cast synced 2026-07-29 03:38:52 +03:00
This commit is contained in:
Anton Afanasyeu
2026-06-13 18:17:44 +02:00
parent 2fd6d421a3
commit 622d75bdcf

View File

@@ -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);