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:39 +00:00
parent 8a9e9d63d5
commit 80a46a9306

View File

@ -109,7 +109,8 @@ class setup_process
/* stuff the rest of the apps, but only those with available upgrades */
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']) && $GLOBALS['egw_setup']->db->Type != $value['only_db']))
{