X-Git-Url: http://git.treefish.org/banana.git/blobdiff_plain/8db41c98817b1b48532dc3cebf4bea166e42bb70..d38ececa64cec676367c348bc795cd1158dd723b:/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']; + } } - ?>