fixed return value
This commit is contained in:
parent
ca6a7a555a
commit
c49409020d
|
@ -230,6 +230,7 @@ class cache {
|
|||
}
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -222,13 +222,11 @@ class lamUserList extends lamList {
|
|||
* @return lamListTool[] tools
|
||||
*/
|
||||
protected function getAdditionalTools() {
|
||||
if (!isLAMProVersion()) {
|
||||
return array();
|
||||
}
|
||||
elseif (checkIfPasswordChangeIsAllowed()) {
|
||||
if (isLAMProVersion() && checkIfPasswordChangeIsAllowed()) {
|
||||
$passwordTool = new lamListTool(_('Change password'), 'key.png', 'changePassword.php');
|
||||
return array($passwordTool);
|
||||
}
|
||||
return array();
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue