From caa8027b673b808ae7d4739faaf18893ff900d81 Mon Sep 17 00:00:00 2001
From: Jacek Kowalski <Jacek@jacekk.info>
Date: Sun, 12 Aug 2012 13:23:03 +0000
Subject: [PATCH] Usuniecie nieużywanej zmiennej $txt.

---
 class/BotSession.php |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/class/BotSession.php b/class/BotSession.php
index 9c7a5b0..cec7f45 100644
--- a/class/BotSession.php
+++ b/class/BotSession.php
@@ -54,6 +54,9 @@
 			);
 			
 			$files = glob(BOT_TOPDIR.'/db/*/'.$this->user_struct['user'].'.ggdb');
+			if(!$files) {
+				return;
+			}
 			
 			$this->PDO->beginTransaction();
 			$st = $this->PDO->prepare('INSERT OR REPLACE INTO data (class, name, value) VALUES (?, ?, ?)');

--
Gitblit v1.9.1