Skip to content

Commit

Permalink
bugfix: fixed php warning (LMS+ #928)
Browse files Browse the repository at this point in the history
  • Loading branch information
chilek committed Dec 4, 2019
1 parent 06a00ff commit a4e8191
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/eventschedule.php
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ function parseWorkingHours($hours_period)

$userlist = $LMS->GetUserNames();
$SMARTY->assign('userlist', $userlist);
if (in_array('-1', $userid)) {
if (is_array($userid) && in_array('-1', $userid)) {
$userlist[-1]['id'] = -1;
$userlist[-1]['name'] = trans("unassigned");
}
Expand Down

0 comments on commit a4e8191

Please sign in to comment.