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
|
* @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();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue