Fix some 'isset' checks in 'classes/pref/prefs.php'.

This commit is contained in:
wn 2020-12-12 10:09:25 -06:00
parent 95d0cb4953
commit 8c4ca7c8ef
1 changed files with 2 additions and 2 deletions

View File

@ -1271,14 +1271,14 @@ class Pref_Prefs extends Handler_Protected {
}
private function getShortDesc($pref_name) {
if (isset($this->pref_help[$pref_name])) {
if (isset($this->pref_help[$pref_name][0])) {
return $this->pref_help[$pref_name][0];
}
return "";
}
private function getHelpText($pref_name) {
if (isset($this->pref_help[$pref_name])) {
if (isset($this->pref_help[$pref_name][1])) {
return $this->pref_help[$pref_name][1];
}
return "";