aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Wall_attach.php
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2017-11-25 07:17:52 +0100
committerMario Vavti <mario@mariovavti.com>2017-11-25 07:17:52 +0100
commit2108173e74c12ce590c87e673d3455f7a9b18de8 (patch)
tree2fc06a9de42ac30c95aab864ecfd0fe2e7681d0c /Zotlabs/Module/Wall_attach.php
parentb03545f89939ef1c13ca7f5a950d52fcb7f2313f (diff)
parent08900b730bd39c00e399696472d904c1d5e4ef0b (diff)
downloadvolse-hubzilla-2108173e74c12ce590c87e673d3455f7a9b18de8.tar.gz
volse-hubzilla-2108173e74c12ce590c87e673d3455f7a9b18de8.tar.bz2
volse-hubzilla-2108173e74c12ce590c87e673d3455f7a9b18de8.zip
Merge remote-tracking branch 'mike/master' into dev
Diffstat (limited to 'Zotlabs/Module/Wall_attach.php')
-rw-r--r--Zotlabs/Module/Wall_attach.php10
1 files changed, 6 insertions, 4 deletions
diff --git a/Zotlabs/Module/Wall_attach.php b/Zotlabs/Module/Wall_attach.php
index e001ad929..2250e6e44 100644
--- a/Zotlabs/Module/Wall_attach.php
+++ b/Zotlabs/Module/Wall_attach.php
@@ -41,10 +41,12 @@ class Wall_attach extends \Zotlabs\Web\Controller {
$matches = [];
$partial = false;
- $x = preg_match('/bytes (\d*)\-(\d*)\/(\d*)/',$_SERVER['HTTP_CONTENT_RANGE'],$matches);
- if($x) {
- // logger('Content-Range: ' . print_r($matches,true));
- $partial = true;
+ if(array_key_exists('HTTP_CONTENT_RANGE',$_SERVER)) {
+ $pm = preg_match('/bytes (\d*)\-(\d*)\/(\d*)/',$_SERVER['HTTP_CONTENT_RANGE'],$matches);
+ if($pm) {
+ // logger('Content-Range: ' . print_r($matches,true));
+ $partial = true;
+ }
}
if($partial) {