Code

Removed dangling div tag
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 23 May 2005 13:05:37 +0000 (13:05 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 23 May 2005 13:05:37 +0000 (13:05 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@350 594d385d-05f5-0310-b6e9-bd551577e9d8

html/index.php
html/main.php

index 90a6a4814c73ff1179d64ffb0b14424f43a4404c..0c500192130002e8bd4cb53bc76beec4a0801f27 100644 (file)
@@ -236,7 +236,11 @@ $smarty->assign ("PHPSESSID", session_id());
 if (isset($_SESSION['errors'])){
   $smarty->assign("errors", $_SESSION['errors']);
 }
-$smarty->assign("php_error", $error_collector."</div>");
+if ($error_collector != ""){
+  $smarty->assign("php_error", $error_collector."</div>");
+} else {
+  $smarty->assign("php_error", "");
+}
 $smarty->display (get_template_path('login.tpl'));
 
 // vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler:
index 85366e949c100a13fde72e64ae077f2fac47a674..b8fe29024492fff4c74119e8fabe36a8942e44ce 100644 (file)
@@ -268,7 +268,11 @@ $smarty->assign("contents", $display);
 if (isset($_SESSION['errors'])){
   $smarty->assign("errors", $_SESSION['errors']);
 }
-$smarty->assign("php_errors", $error_collector."</div>");
+if ($error_collector != ""){
+  $smarty->assign("php_errors", $error_collector."</div>");
+} else {
+  $smarty->assign("php_errors", "");
+}
 $smarty->display(get_template_path('framework.tpl'));
 $_SESSION['plist']= $plist;