From be1aa0ddfedf76c70718d1f3e67d2d8a10c0c215 Mon Sep 17 00:00:00 2001 From: woon Date: Wed, 12 Apr 2023 14:25:02 +0800 Subject: [PATCH] update --- public/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/index.php b/public/index.php index 3ace71e..c8b1fc3 100644 --- a/public/index.php +++ b/public/index.php @@ -300,7 +300,7 @@ function init() $stmt = get_db()->prepare("SELECT * FROM files WHERE uuid=:uuid LIMIT 1"); $stmt->bindParam(':uuid', $id); - $row = $stmt->fetch(); + $row = $stmt->fetch(PDO::FETCH_ASSOC); if (empty($row['stc'])) { echo_json([