From bcbe9c0739eb64459a95807ec30b442b3d04edf9 Mon Sep 17 00:00:00 2001 From: Jacek Kowalski <Jacek@jacekk.info> Date: Sun, 12 Aug 2012 13:27:03 +0000 Subject: [PATCH] Poprawienie typu zmiennej z tokenem (brak słowa kluczowego static). --- class/BotMsgGG.php | 11 +++++++++-- 1 files changed, 9 insertions(+), 2 deletions(-) diff --git a/class/BotMsgGG.php b/class/BotMsgGG.php index 6b0ff53..acd339d 100644 --- a/class/BotMsgGG.php +++ b/class/BotMsgGG.php @@ -62,14 +62,21 @@ foreach($this->images as $data) { $push->putImage($image[3]); } - - $image = $last; } $image = $last[2].file_get_contents($last[3]); } else { + if(count($this->images) > 0) { + $push = new BotAPIGG(); + foreach($this->images as $data) { + if(!$push->existsImage($image[2])) { + $push->putImage($image[3]); + } + } + } + $image = ''; } -- Gitblit v1.9.1