db-prefs: use user_error

This commit is contained in:
Andrew Dolgov 2013-04-18 11:38:22 +04:00
parent 3f6f085769
commit c1e45a87b2

View file

@ -97,7 +97,7 @@
} else {
if ($die_on_error) {
die("Fatal error, unknown preferences key: $pref_name");
user_error("Fatal error, unknown preferences key: $pref_name", E_USER_ERROR);
} else {
return null;
}