mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-28 12:30:42 +02:00
Fix bug #487265
git-svn-id: file:///svn/phpbb/trunk@1487 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -715,7 +715,7 @@ if( !empty($mode) )
|
|||||||
$from_id = intval($HTTP_POST_VARS['from_id']);
|
$from_id = intval($HTTP_POST_VARS['from_id']);
|
||||||
$to_id = intval($HTTP_POST_VARS['to_id']);
|
$to_id = intval($HTTP_POST_VARS['to_id']);
|
||||||
|
|
||||||
if (isset($to_id))
|
if (!empty($to_id))
|
||||||
{
|
{
|
||||||
$sql = "SELECT *
|
$sql = "SELECT *
|
||||||
FROM " . CATEGORIES_TABLE . "
|
FROM " . CATEGORIES_TABLE . "
|
||||||
@@ -741,7 +741,6 @@ if( !empty($mode) )
|
|||||||
$sql = "DELETE FROM " . CATEGORIES_TABLE ."
|
$sql = "DELETE FROM " . CATEGORIES_TABLE ."
|
||||||
WHERE cat_id = $from_id";
|
WHERE cat_id = $from_id";
|
||||||
|
|
||||||
echo $sql;
|
|
||||||
if( !$result = $db->sql_query($sql) )
|
if( !$result = $db->sql_query($sql) )
|
||||||
{
|
{
|
||||||
message_die(GENERAL_ERROR, "Couldn't delete category", "", __LINE__, __FILE__, $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);
|
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) )
|
if( $total_forums = $db->sql_numrows($q_forums) )
|
||||||
{
|
{
|
||||||
|
$forum_rows = $db->sql_fetchrowset($q_forums);
|
||||||
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
// Okay, let's build the index
|
// Okay, let's build the index
|
||||||
//
|
//
|
||||||
@@ -910,8 +910,6 @@ if( $total_categories = $db->sql_numrows($q_categories) )
|
|||||||
|
|
||||||
} // for ... categories
|
} // for ... categories
|
||||||
|
|
||||||
}// if ... total_forums
|
|
||||||
|
|
||||||
}// if ... total_categories
|
}// if ... total_categories
|
||||||
|
|
||||||
$template->pparse("body");
|
$template->pparse("body");
|
||||||
|
Reference in New Issue
Block a user