fixed return value

This commit is contained in:
Roland Gruber 2008-01-08 17:49:50 +00:00
parent ca6a7a555a
commit c49409020d
2 changed files with 3 additions and 4 deletions

View File

@ -230,6 +230,7 @@ class cache {
} }
} }
} }
return null;
} }

View File

@ -222,13 +222,11 @@ class lamUserList extends lamList {
* @return lamListTool[] tools * @return lamListTool[] tools
*/ */
protected function getAdditionalTools() { protected function getAdditionalTools() {
if (!isLAMProVersion()) { if (isLAMProVersion() && checkIfPasswordChangeIsAllowed()) {
return array();
}
elseif (checkIfPasswordChangeIsAllowed()) {
$passwordTool = new lamListTool(_('Change password'), 'key.png', 'changePassword.php'); $passwordTool = new lamListTool(_('Change password'), 'key.png', 'changePassword.php');
return array($passwordTool); return array($passwordTool);
} }
return array();
} }
/** /**