From 1745051e6e0d63200678ae0f4a5afaa226294492 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20Schw=C3=B6rer?= Date: Sat, 17 Nov 2018 12:51:20 +0100 Subject: [PATCH] fixed info.php return value --- web/api/info.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/api/info.php b/web/api/info.php index 29dfa36..f2e9ec9 100644 --- a/web/api/info.php +++ b/web/api/info.php @@ -30,7 +30,7 @@ if ($data['user_key'] !== $user_key) die(json_encode(['success' => false, 'errid $stmt = $pdo->prepare('SELECT COUNT(*) FROM messages WHERE ack=0 AND sender_user_id=:uid'); $stmt->execute(['uid' => $user_id]); -$nack_count = $stmt->fetch(PDO::FETCH_NUM); +$nack_count = $stmt->fetch(PDO::FETCH_NUM)[0]; $quota = $data['quota_today'];