aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
authorredmatrix <redmatrix@redmatrix.me>2015-05-19 18:28:52 -0700
committerredmatrix <redmatrix@redmatrix.me>2015-05-19 18:28:52 -0700
commitacc8e10a450f8427f523261f0f6e9d683cfe0e38 (patch)
tree53c984ea7d52a5fb2a3332a8ee63c98ec63e4ad5 /mod
parentd63bcde6e20fbbc31bc53c4d92058141657ca4e1 (diff)
downloadvolse-hubzilla-acc8e10a450f8427f523261f0f6e9d683cfe0e38.tar.gz
volse-hubzilla-acc8e10a450f8427f523261f0f6e9d683cfe0e38.tar.bz2
volse-hubzilla-acc8e10a450f8427f523261f0f6e9d683cfe0e38.zip
merge redmatrix fix
Diffstat (limited to 'mod')
-rw-r--r--mod/impel.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/mod/impel.php b/mod/impel.php
index 65d5d2e7a..4700aaec5 100644
--- a/mod/impel.php
+++ b/mod/impel.php
@@ -91,7 +91,7 @@ function impel_init(&$a) {
dbesc($namespace),
intval(local_channel())
);
- $i = q("select id, item_restrict from item where mid = '%s' and uid = %d limit 1",
+ $i = q("select id, item_deleted from item where mid = '%s' and uid = %d limit 1",
dbesc($arr['mid']),
intval(local_channel())
);
@@ -104,7 +104,7 @@ function impel_init(&$a) {
$x = item_store_update($arr,$execflag);
}
else {
- if(($i) && ($i[0]['item_restrict'] & ITEM_DELETED)) {
+ if(($i) && intval($i[0]['item_deleted'])) {
// was partially deleted already, finish it off
q("delete from item where mid = '%s' and uid = %d",
dbesc($arr['mid']),