From e763445dee1090891796220e61a0abb629487023 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Mon, 25 May 2009 07:44:03 +0000 Subject: [PATCH] "do NOT run an update, if none necessary" --- setup/inc/class.setup_cmd_update.inc.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/setup/inc/class.setup_cmd_update.inc.php b/setup/inc/class.setup_cmd_update.inc.php index 8dead4e326..4d1723038b 100644 --- a/setup/inc/class.setup_cmd_update.inc.php +++ b/setup/inc/class.setup_cmd_update.inc.php @@ -62,6 +62,10 @@ class setup_cmd_update extends setup_cmd $this->check_installed($this->domain,array(14),$this->verbose); + if ($GLOBALS['egw_info']['setup']['stage']['db'] != 4) + { + return lang('No update necessary, domain %1(%2) is up to date.',$this->domain,$GLOBALS['egw_domain'][$this->domain]['db_type']); + } $setup_info = self::$egw_setup->detection->upgrade_exclude($setup_info); self::_echo_message($this->verbose,lang('Start updating the database ...'));