From c52481b5f96e34b494bca7d3d9261af3691d4d16 Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Fri, 5 Oct 2007 16:54:00 +0000 Subject: [PATCH] avoid undefined variable next_quote --- libraries/import/sql.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libraries/import/sql.php b/libraries/import/sql.php index 602df0b1e..3d8352dd5 100644 --- a/libraries/import/sql.php +++ b/libraries/import/sql.php @@ -77,8 +77,12 @@ while (!($finished && $i >= $len) && !$error && !$timeout_passed) { $first_quote = strpos($buffer, '\'', $i); if ($first_quote === FALSE) { $first_quote = $big_value; + $next_quote = $big_value; } else { $next_quote = strpos($buffer, '\'', $first_quote + 1); + if ($next_quote === FALSE) { + $next_quote = $big_value; + } } $p2 = strpos($buffer, '"', $i); if ($p2 === FALSE) {