diff --git a/docs/changelog/6.x.x.txt b/docs/changelog/6.x.x.txt index dc3b64f81..4473e9bfc 100644 --- a/docs/changelog/6.x.x.txt +++ b/docs/changelog/6.x.x.txt @@ -94,4 +94,6 @@ webgui. from previous distributions or th 5.5 branch in CVS. - Added Job Listing templates to the USS. - Added a view privileges setting to each forum. + - Bugfix [ 822805 ] Emptying trash can cause fatal error + (Thanks to Steve Simms.) diff --git a/lib/WebGUI/Session.pm b/lib/WebGUI/Session.pm index 125547515..ec360f27a 100644 --- a/lib/WebGUI/Session.pm +++ b/lib/WebGUI/Session.pm @@ -480,19 +480,14 @@ Updates the WebGUI session to reflect new page information. =item pageId -Defaults to page id "1". Specify the page id to change this WebGUI session to use. +Defaults to the current page. Specify the page id to change this WebGUI session to use. =back =cut sub refreshPageInfo { - my ($pageId); - if ($_[0] == 0) { - $pageId = $session{page}{pageId}; - } else { - $pageId = $_[0]; - } + my $pageId = $_[0]; _setupPageInfo($pageId); }