From 8047f7b1482f10690836d8cf553c151e3bf993da Mon Sep 17 00:00:00 2001 From: knut <> Date: Mon, 18 Aug 2008 23:22:07 +0000 Subject: fixed #823 --- framework/Web/UI/WebControls/TListControl.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'framework/Web/UI') diff --git a/framework/Web/UI/WebControls/TListControl.php b/framework/Web/UI/WebControls/TListControl.php index c02f890b..84c23f88 100644 --- a/framework/Web/UI/WebControls/TListControl.php +++ b/framework/Web/UI/WebControls/TListControl.php @@ -4,7 +4,7 @@ * * @author Qiang Xue * @link http://www.pradosoft.com/ - * @copyright Copyright © 2005-2008 PradoSoft + * @copyright Copyright © 2005-2008 PradoSoft * @license http://www.pradosoft.com/license/ * @version $Id$ * @package System.Web.UI.WebControls @@ -792,11 +792,11 @@ abstract class TListControl extends TDataBoundControl implements IDataRenderer */ public function renderContents($writer) { + $this->renderPrompt($writer); + if($this->_items) { $writer->writeLine(); - if($this->_items->getCount()) - $this->renderPrompt($writer); $previousGroup=null; foreach($this->_items as $item) { @@ -1067,4 +1067,4 @@ interface IListControlAdapter } -?> +?> -- cgit v1.2.3