mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-17 23:11:30 +00:00
db_prefs: don't report missing prefs if die_on_error is false
This commit is contained in:
@@ -90,8 +90,8 @@ class Db_Prefs {
|
|||||||
|
|
||||||
return $this->convert($value, $type_name);
|
return $this->convert($value, $type_name);
|
||||||
|
|
||||||
} else {
|
} else if ($die_on_error) {
|
||||||
user_error("Fatal error, unknown preferences key: $pref_name (owner: $user_id)", $die_on_error ? E_USER_ERROR : E_USER_WARNING);
|
user_error("Fatal error, unknown preferences key: $pref_name (owner: $user_id)", E_USER_ERROR);
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user