fixed bug #491051 - SQL Upload error last comment

This commit is contained in:
Loïc Chapeaux
2001-12-11 12:11:14 +00:00
parent 14bef345d1
commit ae50054466

View File

@@ -101,8 +101,10 @@ function PMA_splitSqlFile(&$ret, $sql, $release)
: strpos(' ' . $sql, "\015", $i+2);
if (!$end_of_comment) {
// no eol found after '#', add the parsed part to the returned
// array and exit
$ret[] = trim(substr($sql, 0, $i-1));
// array if required and exit
if ($start_of_comment > 0) {
$ret[] = trim(substr($sql, 0, $start_of_comment));
}
return TRUE;
} else {
$sql = substr($sql, 0, $start_of_comment)
@@ -356,7 +358,7 @@ if (!empty($id_bookmark) && $action_bookmark == 2) {
} else if (!isset($sql_query_cpy)) {
$message = $strNoQuery;
} else if ($sql_query_cpy == '') {
$message = "$strSuccess&nbsp:<br />$strTheContent ($pieces_count $strInstructions)&nbsp;";
$message = "$strSuccess&nbsp;:<br />$strTheContent ($pieces_count $strInstructions)&nbsp;";
} else {
$message = $strSuccess;
}