Skip to content

Commit

Permalink
Fixed #77
Browse files Browse the repository at this point in the history
Fixed #77 - Added "boolean" printer
  • Loading branch information
xeno010 committed May 21, 2014
1 parent 4dff79b commit 24c1bf2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion includes/reporthelper.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,8 @@ public static function displayPreferences($prefs) {
foreach($values as $key=>$value) {
if (is_array($value))
$value = print_r($value, true);
else if(is_bool($value))
$value = '<input type="checkbox" '.($value ? 'checked="checked"' : '').'>';

echo '<tr><td>'.$key.'</td><td>'.$value.'</td></tr>';
}
Expand Down Expand Up @@ -328,4 +330,4 @@ private static function formatStackTraceCausedByLine(&$line) {

return $line;
}
}
}

0 comments on commit 24c1bf2

Please sign in to comment.