From c79ebeb2bf2d3285b104927f9f526ecd7740edff Mon Sep 17 00:00:00 2001 From: Jacek Kowalski <Jacek@jacekk.info> Date: Sun, 12 Aug 2012 13:28:31 +0000 Subject: [PATCH] Dodanie brakujÄ…cego parametru w metodzie existsImage() w klasie BotAPIGG. --- 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