From d510dc58c1f80a51468bc7d9fb6055cbd7c2e44f Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Tue, 20 Dec 2016 22:12:31 +0100 Subject: [PATCH] fixed PHP error --- lam/templates/tests/lamdaemonTest.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lam/templates/tests/lamdaemonTest.php b/lam/templates/tests/lamdaemonTest.php index 2da7b8ec..a3cd6bb9 100644 --- a/lam/templates/tests/lamdaemonTest.php +++ b/lam/templates/tests/lamdaemonTest.php @@ -212,7 +212,8 @@ function lamRunLamdaemonTestSuite($serverName, $serverTitle, $testQuota, $contai // check Unix account of LAM admin $credentials = $_SESSION['ldap']->decrypt_login(); if (!$stopTest) { - if (empty($_SESSION['config']->getScriptUserName())) { + $scriptUserName = $_SESSION['config']->getScriptUserName(); + if (empty($scriptUserName)) { $container->addElement(new htmlOutputText(_("Unix account"))); $container->addElement($spacer); $unixOk = false;