diff options
author | Mario <mario@mariovavti.com> | 2021-01-15 20:26:22 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2021-01-15 20:26:22 +0000 |
commit | f7222d43c9890600ef83712c21105e7d99618c5e (patch) | |
tree | d632f4b4f36cb8af7e533fa2d18def582f26062c /Zotlabs | |
parent | 1e474c968947314eff38fe6238c17134cb521dc0 (diff) | |
download | volse-hubzilla-f7222d43c9890600ef83712c21105e7d99618c5e.tar.gz volse-hubzilla-f7222d43c9890600ef83712c21105e7d99618c5e.tar.bz2 volse-hubzilla-f7222d43c9890600ef83712c21105e7d99618c5e.zip |
only vars can be passed by reference
Diffstat (limited to 'Zotlabs')
-rw-r--r-- | Zotlabs/Module/Embedphotos.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Zotlabs/Module/Embedphotos.php b/Zotlabs/Module/Embedphotos.php index 9b0884197..ed5b24724 100644 --- a/Zotlabs/Module/Embedphotos.php +++ b/Zotlabs/Module/Embedphotos.php @@ -40,7 +40,8 @@ class Embedphotos extends \Zotlabs\Web\Controller { if (!$href) { json_return_and_die(array('errormsg' => 'Error retrieving link ' . $href, 'status' => false)); } - $resource_id = array_pop(explode('/', $href)); + $arr = explode('/', $href); + $resource_id = array_pop($arr); $x = self::photolink($resource_id); if($x) json_return_and_die(array('status' => true, 'photolink' => $x, 'resource_id' => $resource_id)); |