From a30da2e71ad2ed23cbcb6011ab848ab888b2dd46 Mon Sep 17 00:00:00 2001 From: knut <> Date: Wed, 22 Feb 2006 21:46:16 +0000 Subject: Did some minor optimization tweaks --- framework/Web/UI/WebControls/TWizard.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'framework/Web/UI') diff --git a/framework/Web/UI/WebControls/TWizard.php b/framework/Web/UI/WebControls/TWizard.php index 20d80eca..a8ed806f 100644 --- a/framework/Web/UI/WebControls/TWizard.php +++ b/framework/Web/UI/WebControls/TWizard.php @@ -330,7 +330,7 @@ class TWizard extends TPanel implements INamingContainer $this->_steps[$i]->setVisible($i == $index); //determine which link is active - for($i = 0; $i < count($this->_sidebarLinks); $i++) + for($i = 0, $k = count($this->_sidebarLinks); $i < $k; $i++) $this->_sidebarLinks[$i]->CssClass= ($i == $index)?'active':''; //hide all the navigations first. -- cgit v1.2.3