Skip to content
Snippets Groups Projects
Commit 6181ab41 authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

FIX Avoid to return an error due to mysql warning

parent e7e69570
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment