Fix profileIsEditable setting

ofaj
jmontoyaa 10 years ago
parent efd6d26047
commit f9e1dd0fd5
  1. 9
      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;
}
/*

Loading…
Cancel
Save