Skip to content

Commit

Permalink
FIX Avoid to return an error due to mysql warning
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Feb 22, 2016
1 parent e7e6957 commit 6181ab4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions htdocs/admin/tools/export.php
Expand Up @@ -201,6 +201,7 @@
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;
Expand Down

0 comments on commit 6181ab4

Please sign in to comment.