From: Michael Vogel Date: Sat, 26 Sep 2015 09:17:12 +0000 (+0200) Subject: Only execute the sync if the pumpio plugin is enabled X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=efac4cfbf49629638025a2e0f31df3667ae20e44;p=friendica-addons.git Only execute the sync if the pumpio plugin is enabled --- diff --git a/pumpio/pumpio.php b/pumpio/pumpio.php index 95bc6b9f..491b3ffe 100644 --- a/pumpio/pumpio.php +++ b/pumpio/pumpio.php @@ -604,6 +604,12 @@ function pumpio_action(&$a, $uid, $uri, $action, $content = "") { } function pumpio_sync(&$a) { + $r = q("SELECT * FROM `addon` WHERE `installed` = 1 AND `name` = 'pumpio'", + $plugin); + + if (!count($r)) + return; + $last = get_config('pumpio','last_poll'); $poll_interval = intval(get_config('pumpio','poll_interval'));