From 8bbc04893349f219a0e4d8fae659c388c04703d9 Mon Sep 17 00:00:00 2001 From: jmontoyaa Date: Wed, 15 Jun 2016 13:54:55 +0200 Subject: [PATCH] Fix switch --- main/mySpace/myStudents.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main/mySpace/myStudents.php b/main/mySpace/myStudents.php index 63627beb4a..6b1a2aad7e 100755 --- a/main/mySpace/myStudents.php +++ b/main/mySpace/myStudents.php @@ -164,9 +164,9 @@ if (isset($_GET['user_id']) && $_GET['user_id'] != "") { } // Action behaviour +$action = isset($_GET['action']) ? $_GET['action'] : ''; - -switch ($_GET['action']) { +switch ($action) { case 'send_legal': $subject = get_lang('SendLegalSubject'); $content = sprintf(