Opravena logicka chyba v poslednim commitu
authorThomas Mudrunka <tomas@mudrunka.cz>
Thu, 15 Mar 2012 08:42:33 +0000 (09:42 +0100)
committerThomas Mudrunka <tomas@mudrunka.cz>
Thu, 15 Mar 2012 08:42:33 +0000 (09:42 +0100)
index.php

index cc4d22a55bd142c4c8221502cd31ad01a727b21a..121f903d9b1ae58c02a0f34e1734b4e4d780899f 100755 (executable)
--- 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;
                }
This page took 0.144461 seconds and 4 git commands to generate.