X-Git-Url: http://git.treefish.org/banana.git/blobdiff_plain/3f75cb10d008938dca476577d6256765093d1932..17d5ad30f747658451fae84fe65cb1f5b66d377c:/include/prefs.inc diff --git a/include/prefs.inc b/include/prefs.inc index 58aac3e..a3e1aaa 100644 --- a/include/prefs.inc +++ b/include/prefs.inc @@ -1,9 +1,10 @@ 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']; + } } - ?>