]> git.mxchange.org Git - friendica-addons.git/commitdiff
Only execute the sync if the pumpio plugin is enabled
authorMichael Vogel <icarus@dabo.de>
Sat, 26 Sep 2015 09:17:12 +0000 (11:17 +0200)
committerMichael Vogel <icarus@dabo.de>
Sat, 26 Sep 2015 09:17:12 +0000 (11:17 +0200)
pumpio/pumpio.php

index 95bc6b9f3ca37c9794e3f3e4e6457d1f9a05b62b..491b3ffe2fec7d38410a0456fe78a83ab42a1a67 100644 (file)
@@ -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'));