aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-11-03 14:20:49 -0700
committerzotlabs <mike@macgirvin.com>2017-11-03 14:20:49 -0700
commitfae9c236371ba70b2ac7624d6020c76a77c1944d (patch)
tree2db36c700634c0ec3a01fa1ae82ce0f0369f4112 /include
parent1159dd59edc40b753b9f4fe55165b4ee3c22285d (diff)
downloadvolse-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.php3
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']);