db_prefs: return null if requested key is unset

This commit is contained in:
Andrew Dolgov 2019-04-10 13:39:55 +03:00
parent e31e9ae04d
commit dee1614d0a
1 changed files with 2 additions and 0 deletions

View File

@ -93,6 +93,8 @@ class Db_Prefs {
} else if ($die_on_error) {
user_error("Fatal error, unknown preferences key: $pref_name (owner: $user_id)", E_USER_ERROR);
return null;
} else {
return null;
}
}