1
0
mirror of https://github.com/mosbth/cimage.git synced 2025-08-02 22:27:44 +02:00

calling setSource(null) should unset imageSrc and pathToImage

This commit is contained in:
Mikael Roos
2015-09-16 08:26:28 +02:00
parent a787593533
commit 49f5f66ad3

View File

@@ -581,6 +581,8 @@ class CImage
public function setSource($src, $dir = null) public function setSource($src, $dir = null)
{ {
if (!isset($src)) { if (!isset($src)) {
$this->imageSrc = null;
$this->pathToImage = null;
return $this; return $this;
} }