From 64d3114c3eeb933152732e024b81b2a94c8db87f Mon Sep 17 00:00:00 2001
From: Jacek Kowalski <Jacek@jacekk.info>
Date: Sat, 30 Jun 2012 20:06:25 +0000
Subject: [PATCH] Zmiany w Microsoft Translator, tj: - przeniesienie systemu do Azure Datamarket, - zmiany w API, - nowy klucz, tzw. Account Key.

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

diff --git a/class/BotSession.php b/class/BotSession.php
index a70734e..9c7a5b0 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;
 		}
 	}

--
Gitblit v1.9.1