diff options
Diffstat (limited to 'app')
-rw-r--r-- | app/class/obj.class.php | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/app/class/obj.class.php b/app/class/obj.class.php index 9d3ac9a..bd546b2 100644 --- a/app/class/obj.class.php +++ b/app/class/obj.class.php @@ -298,21 +298,17 @@ class obj extends table /* bgs image */ $bgs = "dynmic/bgs/" . $this->guid; if (!saveIfFile($image, $bgs, self::BG_MAXSIZE, self::IMAGE_MIME)) - goto fail; + return false; /* thumbs image */ $thumbs = "dynmic/thumbs/" . $this->guid; if (!copy($bgs, $thumbs)) - goto fail; + return false; if (!imageSquareCrop($thumbs)) - goto fail; + return false; return true; - -fail: - $this->rmBgImg(); - return false; } /* |