Skip to content

Commit 9b01fde

Browse files
author
François Jacquet
committed
Bugfix no student found when parent logged in
1 parent ec868f2 commit 9b01fde

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

functions/Search.fnc.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ function Search($type,$extra=null)
3434
{
3535
if(UserStudentID())
3636
{
37-
//modif Francois: fix bug no student found when student logged in
38-
if (User('PROFILE')!=='student')
37+
//modif Francois: fix bug no student found when student/parent logged in
38+
if (User('PROFILE')!=='student' && User('PROFILE')!=='parent')
3939
unset($_SESSION['student_id']);
4040
echo '<script type="text/javascript">parent.side.location="'.$_SESSION['Side_PHP_SELF'].'?modcat="+parent.side.document.forms[0].modcat.value;</script>';
4141
}

0 commit comments

Comments
 (0)