diff options
author | zotlabs <mike@macgirvin.com> | 2017-11-03 14:20:49 -0700 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2017-11-03 14:20:49 -0700 |
commit | fae9c236371ba70b2ac7624d6020c76a77c1944d (patch) | |
tree | 2db36c700634c0ec3a01fa1ae82ce0f0369f4112 /include | |
parent | 1159dd59edc40b753b9f4fe55165b4ee3c22285d (diff) | |
download | volse-hubzilla-fae9c236371ba70b2ac7624d6020c76a77c1944d.tar.gz volse-hubzilla-fae9c236371ba70b2ac7624d6020c76a77c1944d.tar.bz2 volse-hubzilla-fae9c236371ba70b2ac7624d6020c76a77c1944d.zip |
imagedata not set correctly if large photo AND imagick is not installed
Diffstat (limited to 'include')
-rw-r--r-- | include/photos.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/photos.php b/include/photos.php index 5de68f162..503a725cd 100644 --- a/include/photos.php +++ b/include/photos.php @@ -75,6 +75,9 @@ function photo_upload($channel, $observer, $args) { $imagedata = @file_get_contents($tmp_name); @unlink($tmp_name); } + else { + $imagedata = @file_get_contents($args['os_syspath']); + } } else { $imagedata = @file_get_contents($args['os_syspath']); |