From f9e1dd0fd529e4e981c20ea1e4105d53c6ad1c8a Mon Sep 17 00:00:00 2001 From: jmontoyaa Date: Thu, 18 Aug 2016 12:05:00 +0200 Subject: [PATCH] Fix profileIsEditable setting --- main/auth/profile.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) 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; } /*