check if app is either installed or supports the used database (before installed, but not supported apps where not updated)

This commit is contained in:
Ralf Becker 2010-09-08 12:24:05 +00:00
parent dc88857d9e
commit 7706645423

View File

@ -109,7 +109,8 @@ class setup_process
/* stuff the rest of the apps, but only those with available upgrades */ /* stuff the rest of the apps, but only those with available upgrades */
foreach($setup_info as $key => $value) foreach($setup_info as $key => $value)
{ {
if (isset($value['only_db']) && ( // check if app is either installed or supports the used database
if (!isset($value['currentver']) && isset($value['only_db']) && (
is_array($value['only_db']) && !in_array($GLOBALS['egw_setup']->db->Type,$value['only_db']) || is_array($value['only_db']) && !in_array($GLOBALS['egw_setup']->db->Type,$value['only_db']) ||
!is_array($value['only_db']) && $GLOBALS['egw_setup']->db->Type != $value['only_db'])) !is_array($value['only_db']) && $GLOBALS['egw_setup']->db->Type != $value['only_db']))
{ {