diff --git a/statistics.php b/statistics.php index 698093b..2c3f197 100644 --- a/statistics.php +++ b/statistics.php @@ -34,15 +34,17 @@ User Number of Events '; - -foreach($page->DB->resultToArray() as $key => $value) +if(is_array($page->DB->resultToArray() )) { - $top_participants .= '
- - '.$value[0].' - '.$value[1].' -
-
'; + foreach($page->DB->resultToArray() as $key => $value) + { + $top_participants .= '
+ + '.$value[0].' + '.$value[1].' +
+
'; + } } $top_participants .= "