From 50d2eb6a87817aded3251d6f42d5bb018e1e3a74 Mon Sep 17 00:00:00 2001
From: Jacek Kowalski <Jacek@jacekk.info>
Date: Mon, 25 Jun 2012 18:34:45 +0000
Subject: [PATCH] Dalsze poprawki aktualizacji gier lotto (dodanie brakujÄ…cej metody pobierz).

---
 class/BotSession.php |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/class/BotSession.php b/class/BotSession.php
index a70734e..20088e3 100644
--- a/class/BotSession.php
+++ b/class/BotSession.php
@@ -72,7 +72,9 @@
 			}
 		}
 		catch(Exception $e) {
-			@unlink(BOT_TOPDIR.'/database/'.sha1($this->user).'.sqlite');
+			if(file_exists(BOT_TOPDIR.'/database/'.sha1($this->user).'.sqlite')) {
+				@unlink(BOT_TOPDIR.'/database/'.sha1($this->user).'.sqlite');
+			}
 			throw $e;
 		}
 	}
@@ -147,4 +149,4 @@
 		$st->execute(array($this->class));
 	}
 }
-?>
\ No newline at end of file
+?>

--
Gitblit v1.9.1