git-svn-id: file:///svn/phpbb/trunk@1487 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Paul S. Owen 2001-11-29 22:45:13 +00:00
parent 45ee7c56f3
commit b7ca8131fa

View file

@ -715,7 +715,7 @@ if( !empty($mode) )
$from_id = intval($HTTP_POST_VARS['from_id']);
$to_id = intval($HTTP_POST_VARS['to_id']);
if (isset($to_id))
if (!empty($to_id))
{
$sql = "SELECT *
FROM " . CATEGORIES_TABLE . "
@ -741,7 +741,6 @@ if( !empty($mode) )
$sql = "DELETE FROM " . CATEGORIES_TABLE ."
WHERE cat_id = $from_id";
echo $sql;
if( !$result = $db->sql_query($sql) )
{
message_die(GENERAL_ERROR, "Couldn't delete category", "", __LINE__, __FILE__, $sql);
@ -855,10 +854,11 @@ if( $total_categories = $db->sql_numrows($q_categories) )
message_die(GENERAL_ERROR, "Could not query forums information", "", __LINE__, __FILE__, $sql);
}
$forum_rows = $db->sql_fetchrowset($q_forums);
if( $total_forums = $db->sql_numrows($q_forums) )
{
$forum_rows = $db->sql_fetchrowset($q_forums);
}
//
// Okay, let's build the index
//
@ -910,8 +910,6 @@ if( $total_categories = $db->sql_numrows($q_categories) )
} // for ... categories
}// if ... total_forums
}// if ... total_categories
$template->pparse("body");