Fix zpetny kompatibility s PHP 5.2 (kvuli Gandalfovi)
authorThomas Mudrunka <tomas@mudrunka.cz>
Fri, 24 Feb 2012 17:53:47 +0000 (18:53 +0100)
committerThomas Mudrunka <tomas@mudrunka.cz>
Fri, 24 Feb 2012 17:53:47 +0000 (18:53 +0100)
index.php

index 5a63954b7a12b319d0132d97c74dfab9c1c23b10..75303defa82a35de05737998c1947ab70811b53c 100755 (executable)
--- a/index.php
+++ b/index.php
@@ -343,7 +343,8 @@ EOF;
                        'status' => array('status_id' => array(array('item',$where_url)))
                );
                $relations_conditions=array(
-                       'not_sold' => function(&$table,$id,$class=false,$column=false) { return(@$table[$id]['status_id'] != 3); }
+                       //'not_sold' => function(&$table,$id,$class=false,$column=false) { return(@$table[$id]['status_id'] != 3); }
+                       'not_sold' => 'return(@$table[$id]["status_id"] != 3);'
                );
                foreach($table as $id => $row) {
                        foreach($row as $column => $value) {
@@ -355,8 +356,8 @@ EOF;
                                                        $destination[1]
                                                );
                                                if(isset($destination[2])) {
-                                                       $condition = $relations_conditions[$destination[2]]($table,$id);
-                                                       if(!$condition) continue;
+                                                       //$condition = $relations_conditions[$destination[2]]($table,$id);
+                                                       if(!eval($relations_conditions[$destination[2]])) continue;
                                                }
                                                @$table[$id][$class.$suffix_relations] .= $this->link($destination[0], $destination_url, !isset($destination[2])).',';
                                        }
This page took 0.106085 seconds and 4 git commands to generate.