Statistiky zvracejici prazdne vysledky jsou schovany
authorThomas Mudrunka <tomas@mudrunka.cz>
Fri, 25 Nov 2011 01:24:39 +0000 (02:24 +0100)
committerThomas Mudrunka <tomas@mudrunka.cz>
Fri, 25 Nov 2011 01:24:39 +0000 (02:24 +0100)
assistants/lib/stats.inc.php

index 13348225abdc88709e3115fc077d2a4396063926..ca1df72bf4c7fe95a5de939513b4fec46349b12c 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);
+       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.133749 seconds and 4 git commands to generate.