mirror of
https://github.com/mosbth/cimage.git
synced 2025-08-03 14:47:47 +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)
|
public function setSource($src, $dir = null)
|
||||||
{
|
{
|
||||||
if (!isset($src)) {
|
if (!isset($src)) {
|
||||||
|
$this->imageSrc = null;
|
||||||
|
$this->pathToImage = null;
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user