aboutsummaryrefslogtreecommitdiffstats
path: root/include/photos.php
diff options
context:
space:
mode:
Diffstat (limited to 'include/photos.php')
-rw-r--r--include/photos.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/photos.php b/include/photos.php
index 508121950..c38e2bed4 100644
--- a/include/photos.php
+++ b/include/photos.php
@@ -74,6 +74,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']);