db-prefs: use user_error
This commit is contained in:
parent
3f6f085769
commit
c1e45a87b2
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue