From 3783361d56e20ad3d4cf16c743b7228a97fc297a Mon Sep 17 00:00:00 2001 From: Dominik <info@profi-webdesign.com> Date: Sun, 11 Jan 2015 10:20:48 -0500 Subject: [PATCH] fix sql-update --- server/lib/classes/cron.d/100-monitor_system_update.inc.php | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/server/lib/classes/cron.d/100-monitor_system_update.inc.php b/server/lib/classes/cron.d/100-monitor_system_update.inc.php index e6cf821..33c5c1f 100644 --- a/server/lib/classes/cron.d/100-monitor_system_update.inc.php +++ b/server/lib/classes/cron.d/100-monitor_system_update.inc.php @@ -53,6 +53,10 @@ public function onRunJob() { global $app, $conf; + $app->uses('getconf'); + $server_config = $app->getconf->get_server_config($conf['server_id'], 'server'); + if($server_config['monitor_system_updates'] == 'n') return; + /* used for all monitor cronjobs */ $app->load('monitor_tools'); $this->_tools = new monitor_tools(); -- Gitblit v1.9.1