aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_admin.php
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2004-05-30 19:24:53 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2004-05-30 19:24:53 +0000
commit6aa42b69abe798388aad4f7e6bf943dfb608e896 (patch)
tree0b5f6dc0ed309bf7a59cf32714d14bf848b7637d /phpBB/includes/functions_admin.php
parentae93b82e19612c9ab99c11ca9641c1fca32588d4 (diff)
downloadforums-6aa42b69abe798388aad4f7e6bf943dfb608e896.tar
forums-6aa42b69abe798388aad4f7e6bf943dfb608e896.tar.gz
forums-6aa42b69abe798388aad4f7e6bf943dfb608e896.tar.bz2
forums-6aa42b69abe798388aad4f7e6bf943dfb608e896.tar.xz
forums-6aa42b69abe798388aad4f7e6bf943dfb608e896.zip
- forum rules + link to forum rules
- three new (tiny) functions added to functions_posting responsible for handling text with bbcode/smilies/urls, use them at items all over across phpbb... - some bugfixes within admin_forums and other files - new admin_board layout (much safer, security wise) git-svn-id: file:///svn/phpbb/trunk@4903 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/functions_admin.php')
-rw-r--r--phpBB/includes/functions_admin.php10
1 files changed, 9 insertions, 1 deletions
diff --git a/phpBB/includes/functions_admin.php b/phpBB/includes/functions_admin.php
index 35f1dc2cc0..913962f566 100644
--- a/phpBB/includes/functions_admin.php
+++ b/phpBB/includes/functions_admin.php
@@ -779,12 +779,20 @@ function sync($mode, $where_type = '', $where_ids = '', $resync_parents = FALSE,
}
else
{
+ if (!sizeof($where_ids))
+ {
+ return;
+ }
$where_sql = 'WHERE ' . $mode{0} . ".$where_type IN (" . implode(', ', $where_ids) . ')';
$where_sql_and = $where_sql . "\n\tAND";
}
}
else
{
+ if (!sizeof($where_ids))
+ {
+ return;
+ }
$where_sql = 'WHERE ' . $mode{0} . ".$where_type IN (" . implode(', ', $where_ids) . ')';
$where_sql_and = $where_sql . "\n\tAND";
}
@@ -807,7 +815,7 @@ function sync($mode, $where_type = '', $where_ids = '', $resync_parents = FALSE,
FROM ' .TOPICS_TABLE . ' t1, ' . TOPICS_TABLE . " t2
WHERE t1.topic_moved_id = t2.topic_id
AND t1.forum_id = t2.forum_id";
- $result = $db->sql_query($result);
+ $result = $db->sql_query($sql);
if ($row = $db->sql_fetchrow($result))
{