diff --git a/CImage.php b/CImage.php index 9db9536..7807f6d 100644 --- a/CImage.php +++ b/CImage.php @@ -840,17 +840,17 @@ class CImage case 'jpg': case 'jpeg': $this->image = @imagecreatefromjpeg($this->pathToImage); - $this->image or failedToLoad(); + $this->image or $this->failedToLoad(); break; case 'gif': $this->image = @imagecreatefromgif($this->pathToImage); - $this->image or failedToLoad(); + $this->image or $this->failedToLoad(); break; case 'png': $this->image = @imagecreatefrompng($this->pathToImage); - $this->image or failedToLoad(); + $this->image or $this->failedToLoad(); $type = $this->getPngType(); $hasFewColors = imagecolorstotal($this->image);