diff --git a/main/auth/profile.php b/main/auth/profile.php index bb3ea9d8a7..619e4d3873 100755 --- a/main/auth/profile.php +++ b/main/auth/profile.php @@ -499,8 +499,13 @@ function is_platform_authentication() { * * @return boolean Editability of the profile */ -function is_profile_editable() { - return (empty($GLOBALS['profileIsEditable']) ? false : $GLOBALS['profileIsEditable']); +function is_profile_editable() +{ + if (isset($GLOBALS['profileIsEditable'])) { + return (bool) $GLOBALS['profileIsEditable']; + } + + return true; } /*