Only execute the sync if the pumpio plugin is enabled

pull/312/head
Michael Vogel 2015-09-26 11:17:12 +02:00
parent 39cdc9c4aa
commit efac4cfbf4
1 changed files with 6 additions and 0 deletions

View 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'));