diff options
author | Georg Ehrke <developer@georgehrke.com> | 2013-08-05 14:23:30 +0200 |
---|---|---|
committer | Georg Ehrke <developer@georgehrke.com> | 2013-08-05 14:23:30 +0200 |
commit | 554b1990e23c76aea182e9b8c2687f8f8b939fb9 (patch) | |
tree | b26032d744ac63a0bb571ea327f0ff759281a08b /lib | |
parent | 93cdfc3e8a0f2da2ebcca5d5a18a52ba64389d26 (diff) | |
download | nextcloud-server-554b1990e23c76aea182e9b8c2687f8f8b939fb9.tar.gz nextcloud-server-554b1990e23c76aea182e9b8c2687f8f8b939fb9.zip |
suppress is_file error msg
Diffstat (limited to 'lib')
-rw-r--r-- | lib/image.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/image.php b/lib/image.php index c1b187608a6..4bc38e20e56 100644 --- a/lib/image.php +++ b/lib/image.php @@ -392,7 +392,7 @@ class OC_Image { */ public function loadFromFile($imagepath=false) { // exif_imagetype throws "read error!" if file is less than 12 byte - if(!is_file($imagepath) || !file_exists($imagepath) || filesize($imagepath) < 12 || !is_readable($imagepath)) { + if(!@is_file($imagepath) || !file_exists($imagepath) || filesize($imagepath) < 12 || !is_readable($imagepath)) { // Debug output disabled because this method is tried before loadFromBase64? OC_Log::write('core', 'OC_Image->loadFromFile, couldn\'t load: '.$imagepath, OC_Log::DEBUG); return false; |