From 6181ab41490de8ec04450f571516b4449379ee8a Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 22 Feb 2016 09:32:42 +0100 Subject: [PATCH] FIX Avoid to return an error due to mysql warning --- htdocs/admin/tools/export.php | 1 + 1 file changed, 1 insertion(+) diff --git a/htdocs/admin/tools/export.php b/htdocs/admin/tools/export.php index c9e4211842d..81708e53e31 100644 --- a/htdocs/admin/tools/export.php +++ b/htdocs/admin/tools/export.php @@ -201,6 +201,7 @@ if ($what == 'mysql') while (!feof($handlein)) { $read = fgets($handlein); + if (preg_match('/'.preg_quote('Warning: Using a password').'/i', $read)) continue; fwrite($handle,$read); if (preg_match('/'.preg_quote('-- Dump completed').'/i',$read)) $ok=1; elseif (preg_match('/'.preg_quote('SET SQL_NOTES=@OLD_SQL_NOTES').'/i',$read)) $ok=1;