From 86e3eb332bbc3f0d1d33fe87dd5e6015bc108bf3 Mon Sep 17 00:00:00 2001
From: Jacek Kowalski <Jacek@jacekk.info>
Date: Sat, 01 Nov 2014 23:43:48 +0000
Subject: [PATCH] [mod_lotto] Aktualizacja skryptu pobierania danych lotto

---
 modules/30_pogoda/handler.php |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/modules/30_pogoda/handler.php b/modules/30_pogoda/handler.php
index 39beb6a..5a11706 100644
--- a/modules/30_pogoda/handler.php
+++ b/modules/30_pogoda/handler.php
@@ -37,6 +37,7 @@
 				catch(Exception $e) {
 				}
 				
+				$forced = FALSE;
 				if(empty($arg)) {
 					$arg = 'Warszawa';
 					$forced = TRUE;
@@ -138,8 +139,10 @@
 			$arg = trim($msg->args);
 		}
 		
+		$out = new BotMsg();
+		
 		if(empty($arg)) {
-			if(isset($this->session->miasto)) {
+			if(isset($msg->session->miasto)) {
 				return new BotMsg('Aktualnie ustawione miejsce to: '.htmlspecialchars($this->session->miasto).', '.htmlspecialchars($this->session->countryName));
 			}
 			
@@ -160,7 +163,7 @@
 		}
 		else
 		{
-			$out = new BotMsg();
+			
 		}
 		
 		$api = new api_geonames();

--
Gitblit v1.9.1