aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorTobias Hößl <tobias@hoessl.eu>2012-02-27 22:08:00 +0000
committerTobias Hößl <tobias@hoessl.eu>2012-02-27 22:08:00 +0000
commite33c2b8f89d0174b6b2bcbd31d8d89c2ee664340 (patch)
treeb4cb2ea4a0e3cefb9d5f5281502bdfad16b5c344 /include
parent35128ef2c95d8f76afd3edea594623cc265da673 (diff)
downloadvolse-hubzilla-e33c2b8f89d0174b6b2bcbd31d8d89c2ee664340.tar.gz
volse-hubzilla-e33c2b8f89d0174b6b2bcbd31d8d89c2ee664340.tar.bz2
volse-hubzilla-e33c2b8f89d0174b6b2bcbd31d8d89c2ee664340.zip
Avoid a Notice
Diffstat (limited to 'include')
-rwxr-xr-xinclude/items.php4
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;
}
}