From e6bb539d92b940bafed13aa1c3dda472ac68a77f Mon Sep 17 00:00:00 2001 From: "Paul S. Owen" Date: Sun, 22 Dec 2002 18:46:26 +0000 Subject: [PATCH] Fixed failure on no forums git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3244 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/docs/CHANGELOG.html | 1 + phpBB/includes/auth.php | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) 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);