From 0cd9eff7247aadbe12be10debd8cfdddde79affe Mon Sep 17 00:00:00 2001 From: Kevin Yeh Date: Sun, 29 Jan 2012 23:55:47 -0500 Subject: [PATCH] Fix for username reseting to all users. pc_username that was an empty string would clobber session username inadvertently --- interface/main/calendar/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/interface/main/calendar/index.php b/interface/main/calendar/index.php index c3b29baaf..686e34cde 100644 --- a/interface/main/calendar/index.php +++ b/interface/main/calendar/index.php @@ -44,7 +44,7 @@ if (isset($_POST['all_users'])) $_SESSION['pc_username'] = $_POST['all_users']; // bug fix to allow default selection of a provider // added 'if..POST' check -- JRM -if (isset($_REQUEST['pc_username'])) $_SESSION['pc_username'] = $_REQUEST['pc_username']; +if (isset($_REQUEST['pc_username']) && $_REQUEST['pc_username']) $_SESSION['pc_username'] = $_REQUEST['pc_username']; // (CHEMED) Get the width of vieport if (isset($_GET['framewidth'])) $_SESSION['pc_framewidth'] = $_GET['framewidth']; -- 2.11.4.GIT