forgot a couple things on my last checkin

git-svn-id: file:///svn/phpbb/trunk@1067 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
natec 2001-09-24 07:53:08 +00:00
parent bd8fd724df
commit 34dbc44de2

View file

@ -1035,15 +1035,14 @@ if( isset($HTTP_GET_VARS['perform']) || isset($HTTP_POST_VARS['perform']) )
message_die(GENERAL_ERROR, $lang['Restore_Error_uploading']); message_die(GENERAL_ERROR, $lang['Restore_Error_uploading']);
} }
$sql_query = trim($sql_query);
if($sql_query != "") if($sql_query != "")
{ {
// Strip out sql comments... // Strip out sql comments...
$sql_query = remove_remarks($sql_query); $sql_query = remove_remarks($sql_query);
$pieces = split_sql_file($sql_query, ";"); $pieces = split_sql_file($sql_query, ";");
for($i = 0; $i < count($pieces); $i++) $sql_count = count($pieces);
for($i = 0; $i < $sql_count; $i++)
{ {
$sql = trim($pieces[$i]); $sql = trim($pieces[$i]);