From: Thomas Mudrunka Date: Fri, 25 Nov 2011 01:24:39 +0000 (+0100) Subject: Statistiky zvracejici prazdne vysledky jsou schovany X-Git-Url: https://git.harvie.cz/?a=commitdiff_plain;h=4e9289ea286705d3464eb5224716cd006cbf3a15;p=mirrors%2FSokoMan.git Statistiky zvracejici prazdne vysledky jsou schovany --- diff --git a/assistants/lib/stats.inc.php b/assistants/lib/stats.inc.php index 1334822..ca1df72 100644 --- a/assistants/lib/stats.inc.php +++ b/assistants/lib/stats.inc.php @@ -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 "

$description

"; - echo $this->html->render_item_table($result = $this->db->safe_query_fetch($sql)); + echo $this->html->render_item_table($result); }