diff --git a/ChangeLog b/ChangeLog index 54b6b611e..f661877f4 100755 --- a/ChangeLog +++ b/ChangeLog @@ -66,6 +66,7 @@ $Source$ user, it has to fail. * libraries/import/sql.php: Fix query parsing when there is comment or string at the end. + * import.php: Reenable LIMIT appending (bug #1318624). 2005-10-07 Marc Delisle * libraries/check_user_privileges.lib.php: bug #1313821, dbname containing a diff --git a/import.php b/import.php index e5fafbc5e..be2b4ffdb 100644 --- a/import.php +++ b/import.php @@ -357,8 +357,8 @@ if (isset($my_die)) { } if ($go_sql) { - // cleanup some variables, otherwise we confuse sql.php - unset($pos); + // Set pos to zero to possibly append limit + $pos = 0; require('./sql.php'); } else { $active_page = $goto;