From: Thomas Mudrunka Date: Thu, 15 Mar 2012 08:42:33 +0000 (+0100) Subject: Opravena logicka chyba v poslednim commitu X-Git-Url: https://git.harvie.cz/?a=commitdiff_plain;h=03e3ff25855ca7c7e76b702adb7137b815c7f5d5;p=mirrors%2FSokoMan.git Opravena logicka chyba v poslednim commitu --- 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; }