From 03e3ff25855ca7c7e76b702adb7137b815c7f5d5 Mon Sep 17 00:00:00 2001 From: Thomas Mudrunka Date: Thu, 15 Mar 2012 09:42:33 +0100 Subject: [PATCH] Opravena logicka chyba v poslednim commitu --- index.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/index.php b/index.php index cc4d22a..121f903 100755 --- a/index.php +++ b/index.php @@ -55,14 +55,13 @@ class HTML { $header=true; $even=false; foreach($table as $row) { + $params = isset($row[$row_params_field]) ? $row[$row_params_field] : ''; + unset($row[$row_params_field]); if($header) { - unset($row[$row_params_field]); $html.=$this->row(array_keys($row),'thead'); $header=false; } $class = $parity_class ? $parity_class[$even] : false; - $params = isset($row[$row_params_field]) ? $row[$row_params_field] : ''; - unset($row[$row_params_field]); $html.=$this->row($row,false,$class.$params); $even = !$even; } -- 2.30.2