diff --git a/lam/lib/selfService.inc b/lam/lib/selfService.inc index 04cc7abb..abbd1b59 100644 --- a/lam/lib/selfService.inc +++ b/lam/lib/selfService.inc @@ -160,6 +160,10 @@ function getSelfServiceProfiles() { $types = LAM\TYPES\getTypes(); $dir = dir(substr(__FILE__, 0, strlen(__FILE__) - 20) . "/config/selfService"); $ret = array(); + if ($dir === false) { + logNewMessage(LOG_ERR, 'Unable to read self service profiles'); + return $ret; + } while ($entry = $dir->read()){ $ext = substr($entry, strrpos($entry, '.') + 1); $name = substr($entry, 0, strrpos($entry, '.')); diff --git a/lam/templates/config/conflogin.php b/lam/templates/config/conflogin.php index 6dd56feb..1199d390 100644 --- a/lam/templates/config/conflogin.php +++ b/lam/templates/config/conflogin.php @@ -144,7 +144,7 @@ $tabindex = 1; $box->add(new htmlLink(_("Manage server profiles"), 'profmanage.php'), 12, 12, 12, 'text-center'); $boxDiv = new htmlDiv(null, $box); - $boxDiv->setCSSClasses(array('ui-corner-all', 'roundedShadowBox', 'limitWidth')); + $boxDiv->setCSSClasses(array('ui-corner-all', 'roundedShadowBox', 'limitWidth', 'text-center')); $row->add($boxDiv, 12); // back link @@ -152,7 +152,7 @@ $tabindex = 1; $backLink = new htmlLink(_("Back to login"), '../login.php', '../../graphics/undo.png'); $row->add($backLink, 12, 12, 12, 'text-left'); - parseHtml(null, $row, array(), false, $tabindex, 'user'); + parseHtml(null, new htmlDiv(null, $row, array('centeredTable')), array(), false, $tabindex, 'user'); ?>