From efac4cfbf49629638025a2e0f31df3667ae20e44 Mon Sep 17 00:00:00 2001 From: Michael Vogel Date: Sat, 26 Sep 2015 11:17:12 +0200 Subject: [PATCH] Only execute the sync if the pumpio plugin is enabled --- pumpio/pumpio.php | 6 ++++++ 1 file changed, 6 insertions(+) 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')); -- 2.39.5