fixed info.php return value

This commit is contained in:
Mike Schwörer 2018-11-17 12:51:20 +01:00
parent b395e054e6
commit 1745051e6e
Signed by: Mikescher
GPG Key ID: D3C7172E0A70F8CF

View File

@ -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'];