From 49f5f66ad337ec7be2e516a37c9a6600b0fc786b Mon Sep 17 00:00:00 2001 From: Mikael Roos Date: Wed, 16 Sep 2015 08:26:28 +0200 Subject: [PATCH] calling setSource(null) should unset imageSrc and pathToImage --- CImage.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CImage.php b/CImage.php index edcf3bd..a726ce5 100644 --- a/CImage.php +++ b/CImage.php @@ -581,6 +581,8 @@ class CImage public function setSource($src, $dir = null) { if (!isset($src)) { + $this->imageSrc = null; + $this->pathToImage = null; return $this; }