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 <noreply@anthropic.com>
This commit is contained in:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user