X-Git-Url: http://git.treefish.org/banana.git/blobdiff_plain/8db41c98817b1b48532dc3cebf4bea166e42bb70..af8ef5bea80923e27426cb4852c4a4a9fa2c0adc:/include/prefs.inc?ds=inline 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']; + } } - ?>