FIX Avoid to return an error due to mysql warning
This commit is contained in:
parent
e7e6957073
commit
6181ab4149
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user