a little more sophisticated test if we have a functioning database, before trying to store a setup_cmd object, otherwise it stalls the update

This commit is contained in:
Ralf Becker 2012-08-13 12:14:37 +00:00
parent c23f7fc95b
commit e64013f413

View File

@ -90,7 +90,7 @@ abstract class setup_cmd extends admin_cmd
*/
function save($set_modifier=true)
{
if (is_object($GLOBALS['egw']->db))
if (isset($GLOBALS['egw']->db) && is_object($GLOBALS['egw']->db) && $GLOBALS['egw']->db->Database)
{
return parent::save($set_modifier);
}