mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-12 06:18:52 +00:00
Fix bug #487265
git-svn-id: file:///svn/phpbb/trunk@1487 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
45ee7c56f3
commit
b7ca8131fa
1 changed files with 47 additions and 49 deletions
|
@ -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");
|
||||
|
|
Loading…
Add table
Reference in a new issue