diff --git a/phpBB/docs/CHANGELOG.html b/phpBB/docs/CHANGELOG.html
index 28d986240b..8537e00b7f 100644
--- a/phpBB/docs/CHANGELOG.html
+++ b/phpBB/docs/CHANGELOG.html
@@ -172,6 +172,7 @@ p,ul,td {font-size:10pt;}
Fixed javascript error when selecting smiley containing a single quote
Update users watched topic if a post they made is split into a new topic
Fixed situations where email templates contain incorrect or missing subject lines
+Fixed error when searching for posts and no forums exist
1.ii. Changes since 2.0.2
diff --git a/phpBB/includes/auth.php b/phpBB/includes/auth.php
index 2140615aae..0f51a73b0a 100644
--- a/phpBB/includes/auth.php
+++ b/phpBB/includes/auth.php
@@ -129,7 +129,8 @@ function auth($type, $forum_id, $userdata, $f_access = '')
if ( !($f_access = $db->$sql_fetchrow($result)) )
{
- message_die(GENERAL_ERROR, 'No forum access control lists exist', '', __LINE__, __FILE__, $sql);
+ $db->sql_freeresult($result);
+ return array();
}
$db->sql_freeresult($result);