From 4cde4703f2b7c5610e542ab198fa2a80f62b62dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20Schw=C3=B6rer?= Date: Tue, 11 Dec 2018 10:40:30 +0100 Subject: [PATCH] fixed exception in requery.php --- web/api/requery.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/api/requery.php b/web/api/requery.php index de3b017..be35d85 100644 --- a/web/api/requery.php +++ b/web/api/requery.php @@ -28,7 +28,7 @@ if ($data['user_key'] !== $user_key) die(json_encode(['success' => false, 'errid //------------------- -$stmt = $pdo->prepare('SELECT * FROM messages WHERE ack=0 AND sender_user_id=:uid ORDER BY `timestamp` DESC LIMIT 16'); +$stmt = $pdo->prepare('SELECT * FROM messages WHERE ack=0 AND sender_user_id=:uid ORDER BY `timestamp_real` DESC LIMIT 16'); $stmt->execute(['uid' => $user_id]); $nonacks_sql = $stmt->fetchAll(PDO::FETCH_ASSOC);