diff options
author | Simon <simon@kisikew.org> | 2012-03-14 08:02:04 -0700 |
---|---|---|
committer | Simon <simon@kisikew.org> | 2012-03-14 08:02:04 -0700 |
commit | c95deb48398a23de68a3d438b5fffeaea3f3fa01 (patch) | |
tree | f9e7d080dd0e32d876cb07409b4f8dc1b550b10b /include/items.php | |
parent | f03c57007a2a9ec73902acfb2d951528e68e3117 (diff) | |
parent | 0bf9595ab19f3af772d20a88eac86dc8cf962c3e (diff) | |
download | volse-hubzilla-c95deb48398a23de68a3d438b5fffeaea3f3fa01.tar.gz volse-hubzilla-c95deb48398a23de68a3d438b5fffeaea3f3fa01.tar.bz2 volse-hubzilla-c95deb48398a23de68a3d438b5fffeaea3f3fa01.zip |
Merge pull request #134 from simonlnu/master
PHP Fatal error: Call-time pass-by-reference has been removed in mod/item.php on line 630
Diffstat (limited to 'include/items.php')
-rwxr-xr-x | include/items.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/items.php b/include/items.php index 1a7aa6c46..70c72ae16 100755 --- a/include/items.php +++ b/include/items.php @@ -682,7 +682,7 @@ function item_store($arr,$force_parent = false) { unset($arr['dsprsig']); } - if($arr['gravity']) + if(x($arr, 'gravity')) $arr['gravity'] = intval($arr['gravity']); elseif($arr['parent-uri'] === $arr['uri']) $arr['gravity'] = 0; @@ -742,6 +742,7 @@ function item_store($arr,$force_parent = false) { if($arr['parent-uri'] === $arr['uri']) { $parent_id = 0; + $parent_deleted = 0; $allow_cid = $arr['allow_cid']; $allow_gid = $arr['allow_gid']; $deny_cid = $arr['deny_cid']; @@ -800,6 +801,8 @@ function item_store($arr,$force_parent = false) { logger('item_store: item parent was not found - ignoring item'); return 0; } + + $parent_deleted = 0; } } |