]> git.wh0rd.org Git - tt-rss.git/commitdiff
set_pref: add default value for
authorAndrew Dolgov <fox@bah.org.ru>
Wed, 13 Jan 2010 15:48:00 +0000 (18:48 +0300)
committerAndrew Dolgov <fox@bah.org.ru>
Wed, 13 Jan 2010 15:48:00 +0000 (18:48 +0300)
db-prefs.php

index 1c9bbd11659e94d057c98208ff2a3d173329ed39..15f03c094bfc653500530933618c8e908302303f 100644 (file)
@@ -77,7 +77,7 @@
                }
        }
 
-       function set_pref($link, $key, $value, $user_id) {
+       function set_pref($link, $key, $value, $user_id = false) {
                $key = db_escape_string($key);
                $value = db_escape_string($value);