summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 05cee31)
raw | patch | inline | side by side (parent: 05cee31)
author | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 23 May 2005 13:05:37 +0000 (13:05 +0000) | ||
committer | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 23 May 2005 13:05:37 +0000 (13:05 +0000) |
html/index.php | patch | blob | history | |
html/main.php | patch | blob | history |
diff --git a/html/index.php b/html/index.php
index 90a6a4814c73ff1179d64ffb0b14424f43a4404c..0c500192130002e8bd4cb53bc76beec4a0801f27 100644 (file)
--- a/html/index.php
+++ b/html/index.php
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:
diff --git a/html/main.php b/html/main.php
index 85366e949c100a13fde72e64ae077f2fac47a674..b8fe29024492fff4c74119e8fabe36a8942e44ce 100644 (file)
--- a/html/main.php
+++ b/html/main.php
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;