From 5f798ab1e6a68b65386719e761c0f1d2a5fd311b Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Wed, 13 Jan 2010 18:48:00 +0300 Subject: [PATCH] set_pref: add default value for --- db-prefs.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db-prefs.php b/db-prefs.php index 1c9bbd11..15f03c09 100644 --- a/db-prefs.php +++ b/db-prefs.php @@ -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); -- 2.39.5