From b6e6feca32020c061cfaee36bae6e49592aac6f5 Mon Sep 17 00:00:00 2001 From: Cyd Date: Wed, 1 Jul 2026 13:41:23 -0500 Subject: [PATCH] Fix config.php: fetch pqs_pods row before reading pod vars The pod query result was never fetched, so $pod01..16 (and their $_SESSION copies) read a stale row - silent on PHP 5, noisy warnings on PHP 8. Add the missing mysqli_fetch_array. Behavior otherwise unchanged. Co-Authored-By: Claude Opus 4.8 --- includes/config.php | 1 + 1 file changed, 1 insertion(+) diff --git a/includes/config.php b/includes/config.php index 11df16f..940542f 100644 --- a/includes/config.php +++ b/includes/config.php @@ -12,6 +12,7 @@ while ($line = mysqli_fetch_array($result)) { } $query = 'SELECT * FROM pqs_pods'; $result = mysqli_query($link, $query) or die('Query failed: ' . mysqli_error($link)); + $line = mysqli_fetch_array($result); // was missing: pod vars below read a stale row $pod01 = $line[0]; $pod02 = $line[1]; $pod03 = $line[2];