From: cajus Date: Mon, 23 May 2005 13:05:37 +0000 (+0000) Subject: Removed dangling div tag X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=d984d0063c4c9f63af2137a8241301cc0da2c331;p=gosa.git Removed dangling div tag git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@350 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/html/index.php b/html/index.php index 90a6a4814..0c5001921 100644 --- a/html/index.php +++ b/html/index.php @@ -236,7 +236,11 @@ $smarty->assign ("PHPSESSID", session_id()); if (isset($_SESSION['errors'])){ $smarty->assign("errors", $_SESSION['errors']); } -$smarty->assign("php_error", $error_collector.""); +if ($error_collector != ""){ + $smarty->assign("php_error", $error_collector.""); +} else { + $smarty->assign("php_error", ""); +} $smarty->display (get_template_path('login.tpl')); // vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler: diff --git a/html/main.php b/html/main.php index 85366e949..b8fe29024 100644 --- a/html/main.php +++ b/html/main.php @@ -268,7 +268,11 @@ $smarty->assign("contents", $display); if (isset($_SESSION['errors'])){ $smarty->assign("errors", $_SESSION['errors']); } -$smarty->assign("php_errors", $error_collector.""); +if ($error_collector != ""){ + $smarty->assign("php_errors", $error_collector.""); +} else { + $smarty->assign("php_errors", ""); +} $smarty->display(get_template_path('framework.tpl')); $_SESSION['plist']= $plist;