diff options
author | Git'Fellow <12234510+solracsf@users.noreply.github.com> | 2023-06-30 21:58:44 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-30 21:58:44 +0200 |
commit | 9d70fd3e64b60a316a03fb2b237891380c310c58 (patch) | |
tree | 50653c24fdf14c6fbaa976b4b8ab489de15bdb6a /lib/private/legacy | |
parent | d76f39889a9cdf04c69d765c4440b53a8a173100 (diff) | |
download | nextcloud-server-9d70fd3e64b60a316a03fb2b237891380c310c58.tar.gz nextcloud-server-9d70fd3e64b60a316a03fb2b237891380c310c58.zip |
Silent imagecreatefromstring() errors
Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
Diffstat (limited to 'lib/private/legacy')
-rw-r--r-- | lib/private/legacy/OC_Image.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/legacy/OC_Image.php b/lib/private/legacy/OC_Image.php index 74e82e62b16..aac0c496734 100644 --- a/lib/private/legacy/OC_Image.php +++ b/lib/private/legacy/OC_Image.php @@ -758,7 +758,7 @@ class OC_Image implements \OCP\IImage { if (!$this->checkImageDataSize($data)) { return false; } - $this->resource = imagecreatefromstring($data); + $this->resource = @imagecreatefromstring($data); $iType = IMAGETYPE_PNG; $this->logger->debug('OC_Image->loadFromFile, Default', ['app' => 'core']); break; |