<?php
include 'db.inc';
- $result = $db->query("SELECT key, value FROM prefs");
- while ($row = $result->fetch(PDO::FETCH_ASSOC)) {
- $PREFS[$row['key']] = $row['value'];
+ if (! isset($PREFS)) {
+ $result = $db->query("SELECT key, value FROM prefs");
+ while ($row = $result->fetch(PDO::FETCH_ASSOC)) {
+ $PREFS[$row['key']] = $row['value'];
+ }
}
-
?>