From e2261d349427e3b5051519b8a0f1157d5aaa00fc Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Sat, 7 May 2016 07:50:33 +0000 Subject: [PATCH] fix home-accounts in egw_customfields and egw_links to api-accounts --- api/setup/tables_update.inc.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/api/setup/tables_update.inc.php b/api/setup/tables_update.inc.php index 6a5f2e7d43..4f2d72cbdb 100644 --- a/api/setup/tables_update.inc.php +++ b/api/setup/tables_update.inc.php @@ -74,14 +74,13 @@ function api_upgrade16_1() */ function api_upgrade16_1_001() { - $db = new EGroupware\Api\Db; foreach(array( 'cf_type' => 'egw_customfields', 'link_app1' => 'egw_links', 'link_app2' => 'egw_links', ) as $col => $table) { - $db->query("UPDATE $table SET $col='api-accounts' WHERE $col='home-accounts'", __LINE__, __FILE__); + $GLOBALS['egw_setup']->db->query("UPDATE $table SET $col='api-accounts' WHERE $col='home-accounts'", __LINE__, __FILE__); } return $GLOBALS['setup_info']['api']['currentver'] = '16.1.002'; }