From a6a969a32b7988bb1fcc6f4426d81f85dc812a41 Mon Sep 17 00:00:00 2001 From: Lukasz Gaszyna Date: Wed, 9 Jul 2014 04:33:01 +0200 Subject: [PATCH] reset $this->frameSources in the reset() method Allow method chainig in classes using GifCreator with no need to recreate GifCreator object. --- src/GifCreator/GifCreator.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/GifCreator/GifCreator.php b/src/GifCreator/GifCreator.php index 0726243..763bec0 100644 --- a/src/GifCreator/GifCreator.php +++ b/src/GifCreator/GifCreator.php @@ -334,7 +334,7 @@ public function encodeAsciiToChar($char) */ public function reset() { - $this->frameSources; + $this->frameSources=array(); $this->gif = 'GIF89a'; // the GIF header $this->imgBuilt = false; $this->loop = 0; @@ -354,4 +354,4 @@ public function getGif() { return $this->gif; } -} \ No newline at end of file +}