From 8f6376cfd6315210270c22ef0ce7315145133d73 Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Sun, 28 Aug 2011 11:26:51 +0000 Subject: [PATCH] HTML fix --- lam/lib/modules.inc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lam/lib/modules.inc b/lam/lib/modules.inc index aa296f07..5de7a110 100644 --- a/lam/lib/modules.inc +++ b/lam/lib/modules.inc @@ -965,6 +965,7 @@ class accountContainer { private function printPasswordPromt() { echo "
\n"; echo '
'; + $printContainer = false; $container = new htmlTable(); // password fields $container->addElement(new htmlOutputText(_('Password'))); @@ -981,6 +982,7 @@ class accountContainer { $moduleContainer = new htmlTable(); foreach ($this->module as $name => $module) { if (($module instanceof passwordService) && $module->managesPasswordAttributes()) { + $printContainer = true; $moduleContainer->addElement(new htmlInputCheckbox('password_cb_' . $name, true)); $buttonImage = $module->getIcon(); if ($buttonImage != null) { @@ -995,7 +997,9 @@ class accountContainer { $container->addElement(new htmlSpacer(null, '10px'), true); // generate HTML $tabindex = 2000; - parseHtml(null, $container, array(), false, $tabindex, $this->type); + if ($printContainer) { + parseHtml(null, $container, array(), false, $tabindex, $this->type); + } echo "
\n"; }