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:
@@ -581,6 +581,8 @@ class CImage
|
||||
public function setSource($src, $dir = null)
|
||||
{
|
||||
if (!isset($src)) {
|
||||
$this->imageSrc = null;
|
||||
$this->pathToImage = null;
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user