From 20da4e41bc7c1be490c64a6fe3d9a05a3bb67c87 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Wed, 9 Mar 2016 19:45:21 +0000 Subject: [PATCH] an other namespace fix --- api/src/Db/Backup.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/api/src/Db/Backup.php b/api/src/Db/Backup.php index bb2918a32c..92dd942016 100644 --- a/api/src/Db/Backup.php +++ b/api/src/Db/Backup.php @@ -14,6 +14,7 @@ namespace EGroupware\Api\Db; use EGroupware\Api; +use ZipArchive; use html; @@ -961,7 +962,7 @@ class Backup if (!empty($pk)) $max = $row[$pk]; if ($total === 0) fwrite($f,"\ntable: $table\n".implode(',',array_keys($row))."\n"); - array_walk($row,array('db_backup','escape_data'),$schema['fd']); + array_walk($row, array(__CLASS__, 'escape_data'), $schema['fd']); fwrite($f,implode(',',$row)."\n"); ++$total; ++$num_rows; @@ -1154,7 +1155,7 @@ class Backup $line = '"de","NULL","ranking",NULL,NULL,"one backslash: \\\\ here","\\\\","use \\"yes\\", or \\"no, prefession\\"","benützen Sie \\"yes\\" oder \\"no, Beruf\\"",NULL'; echo "

line='$line'

\n"; -$fields = db_backup::csv_split($line); +$fields = Backup::csv_split($line); echo "
".print_r($fields,true)."
\n"; //echo count($fields)." fields\n"; */