From 4e9289ea286705d3464eb5224716cd006cbf3a15 Mon Sep 17 00:00:00 2001 From: Thomas Mudrunka Date: Fri, 25 Nov 2011 02:24:39 +0100 Subject: [PATCH] Statistiky zvracejici prazdne vysledky jsou schovany --- assistants/lib/stats.inc.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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); } -- 2.30.2