mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 06:30:59 +01:00
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:
parent
c23f7fc95b
commit
e64013f413
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user