Statistiky odted nejsou fatalni
[mirrors/SokoMan.git] / assistants / lib / stats.inc.php
index 13348225abdc88709e3115fc077d2a4396063926..5034582a19259b99598659091c86f553a0b90b33 100644 (file)
@@ -2,6 +2,8 @@
 $queries = array(); //TODO: use build_query_select()!!!
 foreach($stats as $stat) include("assistants/stats/$stat.inc.php");
 foreach($queries as $description => $sql) {
+       $result = $this->db->safe_query_fetch($sql,false);
+       if(empty($result)) continue;
        echo "<h2>$description</h2>";
-       echo $this->html->render_item_table($result = $this->db->safe_query_fetch($sql));
+       echo $this->html->render_item_table($result);
 }
This page took 0.102655 seconds and 4 git commands to generate.