Skip to content

Commit

Permalink
Update ProfileManager.php (#1347)
Browse files Browse the repository at this point in the history
* Update ProfileManager.php
Confirms if 'accessibilityPref' is set in user's dynamic properties and sets AccessibilityPreference to false by default if not.
  • Loading branch information
GregoryPost authored May 21, 2024
1 parent d84bfc6 commit 8ca7ab9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions classes/ProfileManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -1082,8 +1082,8 @@ public function getAccessibilityPreference($uid){
$returnVal = false;
$dynPropArr = $this->getDynamicProperties($uid);

if($dynPropArr){
$returnVal = $dynPropArr['accessibilityPref'] == 1? true: false;
if($dynPropArr && isset($dynPropArr['accessibilityPref'])){
$returnVal = ($dynPropArr['accessibilityPref'] === '1') ? true : false;
}
return $returnVal;
}
Expand Down

0 comments on commit 8ca7ab9

Please sign in to comment.