Skip to content

Commit eecb42d

Browse files
committed
PB-24082 - Check if 'filter' param is an array before using it
1 parent cc6a658 commit eecb42d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Controller/EmailController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ public function showLastEmail($username)
9898
*/
9999
private function getEmailType() {
100100
$filter = $this->request->getQuery('filter');
101-
if (is_null($filter)) {
101+
if (is_null($filter) || !is_array($filter)) {
102102
return null;
103103
}
104104

0 commit comments

Comments
 (0)