From a548f444e15735250d4311a53593c8b216aaa137 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Fri, 13 Apr 2012 06:09:51 +0000 Subject: [PATCH] have to use schema from backup itself, not (autoloaded) current schema --- phpgwapi/inc/class.db_backup.inc.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/phpgwapi/inc/class.db_backup.inc.php b/phpgwapi/inc/class.db_backup.inc.php index 7e5fe02a22..a3f2a4bc27 100644 --- a/phpgwapi/inc/class.db_backup.inc.php +++ b/phpgwapi/inc/class.db_backup.inc.php @@ -458,8 +458,6 @@ class db_backup //echo "
$table_name => ".self::write_array($schema,1)."
\n"; $this->schema_proc->CreateTable($table_name,$schema); } - // make the schemas availible for the db-class - $GLOBALS['egw_info']['apps']['all-apps']['table_defs'] = &$this->schemas; continue; } if (substr($line,0,7) == 'table: ') @@ -503,7 +501,7 @@ class db_backup { $data = translation::convert($data,$charset); } - $this->db->insert($table,$data,False,__LINE__,__FILE__,true,true); + $this->db->insert($table,$data,False,__LINE__,__FILE__,false,false,$this->schemas[$table]); } else {