diff options
author | Mario <mario@mariovavti.com> | 2023-04-16 11:20:02 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2023-04-16 11:20:02 +0000 |
commit | e99957f99f8b71b7761c7a3eb884e430a2c9fb3d (patch) | |
tree | 304a5cf72573eb5b0fdebe256494a17cc9d68e37 /include | |
parent | ad5bbc463b0d94a3b920b72bb224b9435a422a4c (diff) | |
download | volse-hubzilla-e99957f99f8b71b7761c7a3eb884e430a2c9fb3d.tar.gz volse-hubzilla-e99957f99f8b71b7761c7a3eb884e430a2c9fb3d.tar.bz2 volse-hubzilla-e99957f99f8b71b7761c7a3eb884e430a2c9fb3d.zip |
fix php warning
Diffstat (limited to 'include')
-rw-r--r-- | include/photo/photo_driver.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/photo/photo_driver.php b/include/photo/photo_driver.php index 0b691b457..522e638de 100644 --- a/include/photo/photo_driver.php +++ b/include/photo/photo_driver.php @@ -142,7 +142,7 @@ function guess_image_type($filename, $data = '') { if(is_null($type) && strpos($filename, 'http') === 0) { $size = getimagesize($filename); - if (array_key_exists($size['mime'], $types)) + if ($size && array_key_exists($size['mime'], $types)) $type = $size['mime']; } |