From e23eaf9f8d8c762338cd23d19287c99a6a58c7e9 Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Sat, 15 Sep 2007 00:56:26 +0000 Subject: [PATCH] mlanthaler: Small fix to prevent E_NOTICEs. (merged from branches/gsoc) git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@41857 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- code/LeftAndMain.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/LeftAndMain.php b/code/LeftAndMain.php index c697dca2..4924be45 100644 --- a/code/LeftAndMain.php +++ b/code/LeftAndMain.php @@ -116,7 +116,7 @@ abstract class LeftAndMain extends Controller { public function show($params) { if($params['ID']) $this->setCurrentPageID($params['ID']); - if($params['OtherID']) + if(isset($params['OtherID'])) Session::set('currentMember', $params['OtherID']); if(Director::is_ajax()) {