From 436f83d67edf512389f596576cc677c32485d3fa Mon Sep 17 00:00:00 2001 From: John Mizerek Date: Sun, 15 Mar 2026 02:08:26 -0700 Subject: [PATCH] Fix: use queryTimed instead of undefined $pdo for ImageExtension update MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit $pdo doesn't exist in this file — all DB queries use queryTimed/queryOne from helpers.php. Co-Authored-By: Claude Opus 4.6 --- api/setup/saveWizard.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/setup/saveWizard.php b/api/setup/saveWizard.php index b20c63c..7abcfa1 100644 --- a/api/setup/saveWizard.php +++ b/api/setup/saveWizard.php @@ -667,7 +667,7 @@ try { if (!is_dir($itemsDir)) mkdir($itemsDir, 0755, true); if (downloadItemImage($menuItemID, $itemImageUrl, $itemsDir)) { $totalImages++; - $pdo->prepare("UPDATE Items SET ImageExtension = 'jpg' WHERE ID = ?")->execute([$menuItemID]); + queryTimed("UPDATE Items SET ImageExtension = 'jpg' WHERE ID = ?", [$menuItemID]); } } }