if statement was setting public to true rather then testing it

This commit is contained in:
Beth Parker 2017-10-30 21:56:28 -05:00
parent 72d9f1acd5
commit 0e7e8a6d41

View file

@ -10,7 +10,7 @@ function retrieve_data ($file, $public_only) {
foreach($data as $category => $items){
$filteredcat = array();
foreach($items as $item => $value){
if($value['public']=true){
if($value['public']==true){
$filteredcat[$item] = $value;
}
}