diff options
author | Tobias Hößl <tobias@hoessl.eu> | 2012-02-27 22:08:00 +0000 |
---|---|---|
committer | Tobias Hößl <tobias@hoessl.eu> | 2012-02-27 22:08:00 +0000 |
commit | e33c2b8f89d0174b6b2bcbd31d8d89c2ee664340 (patch) | |
tree | b4cb2ea4a0e3cefb9d5f5281502bdfad16b5c344 /include/items.php | |
parent | 35128ef2c95d8f76afd3edea594623cc265da673 (diff) | |
download | volse-hubzilla-e33c2b8f89d0174b6b2bcbd31d8d89c2ee664340.tar.gz volse-hubzilla-e33c2b8f89d0174b6b2bcbd31d8d89c2ee664340.tar.bz2 volse-hubzilla-e33c2b8f89d0174b6b2bcbd31d8d89c2ee664340.zip |
Avoid a Notice
Diffstat (limited to 'include/items.php')
-rwxr-xr-x | include/items.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/items.php b/include/items.php index 7d52571c2..5452dfbda 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; @@ -800,6 +800,8 @@ function item_store($arr,$force_parent = false) { logger('item_store: item parent was not found - ignoring item'); return 0; } + + $parent_deleted = 0; } } |