GIT.Harvie.CZ
/
mirrors
/
SokoMan.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
6265a8d
)
Fix zpetny kompatibility s PHP 5.2 (kvuli Gandalfovi)
author
Thomas Mudrunka
<tomas@mudrunka.cz>
Fri, 24 Feb 2012 17:53:47 +0000
(18:53 +0100)
committer
Thomas Mudrunka
<tomas@mudrunka.cz>
Fri, 24 Feb 2012 17:53:47 +0000
(18:53 +0100)
index.php
patch
|
blob
|
blame
|
history
diff --git
a/index.php
b/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(
'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) {
);
foreach($table as $id => $row) {
foreach($row as $column => $value) {
@@
-355,8
+356,8
@@
EOF;
$destination[1]
);
if(isset($destination[2])) {
$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])).',';
}
}
@$table[$id][$class.$suffix_relations] .= $this->link($destination[0], $destination_url, !isset($destination[2])).',';
}
This page took
0.140179 seconds
and
4
git commands to generate.