\n";
echo "\n";
@@ -46,7 +46,7 @@ if (version_compare(phpversion(), '5.4.26') < 0) {
echo "\n";
echo "LDAP Account Manager\n";
echo "\n";
- StatusMessage("ERROR", "LAM needs a PHP 5 version which is greater or equal than 5.4.26.", "Please upgrade your PHP installation. The found version is " . phpversion());
+ StatusMessage("ERROR", "LAM needs a PHP 5 version which is greater or equal than 5.3.2.", "Please upgrade your PHP installation. The found version is " . phpversion());
echo "
";
echo "";
exit();
diff --git a/lam/lib/modules/posixAccount.inc b/lam/lib/modules/posixAccount.inc
index a09c7820..2b9c50bf 100644
--- a/lam/lib/modules/posixAccount.inc
+++ b/lam/lib/modules/posixAccount.inc
@@ -194,8 +194,10 @@ class posixAccount extends baseModule implements passwordService {
$loginShellsHelp = new htmlHelpLink('loginShells', get_class($this));
$loginShellsHelp->alignment = htmlElement::ALIGN_TOP;
$selfServiceContainer->addElement($loginShellsHelp, true);
- $selfServiceContainer->addElement(new htmlTableExtendedInputCheckbox('posixAccount_useOldPwd', false, _('Password change with old password')));
- $selfServiceContainer->addElement(new htmlHelpLink('useOldPwd', get_class($this)), true);
+ if (version_compare(phpversion(), '5.4.26') >= 0) {
+ $selfServiceContainer->addElement(new htmlTableExtendedInputCheckbox('posixAccount_useOldPwd', false, _('Password change with old password')));
+ $selfServiceContainer->addElement(new htmlHelpLink('useOldPwd', get_class($this)), true);
+ }
$return['selfServiceSettings'] = $selfServiceContainer;
}
// profile checks