Skip to content
Browse files

Save assignment if not necessary

  • Loading branch information...
1 parent 9188d21 commit b16bb542195fb8055e24f1ca2b173727b1261b83 @vrana committed Apr 29, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 adminer/sql.inc.php
View
2 adminer/sql.inc.php
@@ -71,10 +71,10 @@
if (!$found && $fp && !feof($fp)) {
$query .= fread($fp, 1e5);
} else {
- $offset = $pos + strlen($found);
if (!$found && rtrim($query) == "") {
break;
}
+ $offset = $pos + strlen($found);
if ($found && rtrim($found) != $delimiter) { // find matching quote or comment end
while (preg_match('(' . ($found == '/*' ? '\\*/' : ($found == '[' ? ']' : (ereg('^-- |^#', $found) ? "\n" : preg_quote($found) . "|\\\\."))) . '|$)s', $query, $match, PREG_OFFSET_CAPTURE, $offset)) { //! respect sql_mode NO_BACKSLASH_ESCAPES
$s = $match[0][0];

0 comments on commit b16bb54

Please sign in to comment.
Something went wrong with that request. Please try again.