From 75184355d02007593d978a13b7e57514e6b08f63 Mon Sep 17 00:00:00 2001 From: Mario Date: Sun, 6 Oct 2024 16:47:15 +0000 Subject: whitespace and use empty for check --- Zotlabs/Module/Item.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'Zotlabs') diff --git a/Zotlabs/Module/Item.php b/Zotlabs/Module/Item.php index c755fadd0..47358aebd 100644 --- a/Zotlabs/Module/Item.php +++ b/Zotlabs/Module/Item.php @@ -1401,12 +1401,12 @@ class Item extends Controller { $nopush = false; } - if (!$nopush) { - Master::Summon(['Notifier', $notify_type, $post_id]); - if (intval($post['approval_id'])) { - Master::Summon(['Notifier', $notify_type, $post['approval_id']]); - } - } + if (!$nopush) { + Master::Summon(['Notifier', $notify_type, $post_id]); + if (!empty($post['approval_id'])) { + Master::Summon(['Notifier', $notify_type, $post['approval_id']]); + } + } logger('post_complete'); -- cgit v1.2.3