From a39b1a41b0875a65c55f8d820b479aad3004aa3d Mon Sep 17 00:00:00 2001 From: avl Date: Tue, 30 Dec 2008 03:56:35 +0200 Subject: [PATCH] render errors empty ul gone --- ipf/form.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ipf/form.php b/ipf/form.php index cd1799c..09b0c6d 100644 --- a/ipf/form.php +++ b/ipf/form.php @@ -268,6 +268,8 @@ function IPF_Form_htmlspecialcharsArray(&$item, $key) function IPF_Form_renderErrorsAsHTML($errors) { + if (count($errors)==0) + return ''; $tmp = array(); foreach ($errors as $err) { $tmp[] = '
  • '.$err.'
  • '; -- 2.49.0