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([