if statement was setting public to true rather then testing it
This commit is contained in:
parent
72d9f1acd5
commit
0e7e8a6d41
1 changed files with 1 additions and 1 deletions
|
@ -10,7 +10,7 @@ function retrieve_data ($file, $public_only) {
|
||||||
foreach($data as $category => $items){
|
foreach($data as $category => $items){
|
||||||
$filteredcat = array();
|
$filteredcat = array();
|
||||||
foreach($items as $item => $value){
|
foreach($items as $item => $value){
|
||||||
if($value['public']=true){
|
if($value['public']==true){
|
||||||
$filteredcat[$item] = $value;
|
$filteredcat[$item] = $value;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue