From 8036f7673df3b3ef21d91da2dc90606f7474c941 Mon Sep 17 00:00:00 2001
From: root <root@orion.zcu.cz>
Date: Mon, 9 Jul 2012 16:57:28 +0200
Subject: [PATCH] uprava

---
 .../contrib/wardenweb/show_HostnameServiceTypeActivity.php     | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/warden-server/contrib/wardenweb/show_HostnameServiceTypeActivity.php b/src/warden-server/contrib/wardenweb/show_HostnameServiceTypeActivity.php
index 080a94f..e20a9de 100644
--- a/src/warden-server/contrib/wardenweb/show_HostnameServiceTypeActivity.php
+++ b/src/warden-server/contrib/wardenweb/show_HostnameServiceTypeActivity.php
@@ -133,6 +133,7 @@ if( IsSet($_POST["btnSubmit"])) {
 <td>
 
 <?
+$res = NULL;
 if( IsSet($_POST["btnSubmit"]) and !empty($where)) {
 
 		$q = "SELECT * FROM events WHERE $where ORDER BY detected DESC LIMIT ".$_POST['limit'];
@@ -162,7 +163,7 @@ if( IsSet($_POST["btnSubmit"]) and !empty($where)) {
 
 #TODO: strip vsechny superznaky
 
-if( $res != FALSE) {
+if( $res != FALSE && $res != NULL) {
                 print("<pre>");
 		while ($tmp = mysql_fetch_assoc($res)) { 
 			#var_dump($tmp);
-- 
GitLab