Skip to content

Commit

Permalink
Fix code to avoid callback usage (this fails on some php)
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Mar 20, 2015
1 parent 3a9c195 commit 5e84ce6
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions htdocs/index.php
Expand Up @@ -407,10 +407,11 @@

//Remove any invalid response
//load_board can return an integer if failed or WorkboardResponse if OK
$valid_dashboardlines = array_filter($dashboardlines, function ($board) {
return $board instanceof WorkboardResponse;
});

$valid_dashboardlines=array();
foreach($dashboardlines as $tmp)
{
if ($tmp instanceof WorkboardResponse) $valid_dashboardlines[] = $tmp;
}
$rowspan = count($valid_dashboardlines);

foreach($valid_dashboardlines as $board)
Expand Down

0 comments on commit 5e84ce6

Please sign in to comment.