From: Michael Date: Tue, 29 May 2018 12:36:44 +0000 (+0000) Subject: Return values X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=476302afc51c69135c27ee31bdb72d9cdfe777d9;p=friendica-addons.git Return values --- diff --git a/pumpio/pumpio.php b/pumpio/pumpio.php index b45e7670..2da35abc 100644 --- a/pumpio/pumpio.php +++ b/pumpio/pumpio.php @@ -1044,13 +1044,16 @@ function pumpio_dodelete(&$a, $uid, $self, $post, $own_id) { // Two queries for speed issues $condition = ['uri' => $post->object->id, 'uid' => $uid]; if (dba::exists('item', $condition)) { - return Item::delete($condition); + Item::delete($condition); + return true; } $condition = ['extid' => $post->object->id, 'uid' => $uid]; if (dba::exists('item', $condition)) { - return Item::delete($condition); + Item::delete($condition); + return true; } + return false; } function pumpio_dopost(&$a, $client, $uid, $self, $post, $own_id, $threadcompletion = true) {