1
0
mirror of https://github.com/mosbth/cimage.git synced 2025-07-30 21:20:11 +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)
{
if (!isset($src)) {
$this->imageSrc = null;
$this->pathToImage = null;
return $this;
}