Skip to content

Commit a087f5f

Browse files
authored
Merge pull request #1789 from Baraka24/fix-undefined-array-key-keyword
fix(other): adding a proper check for the existence of the keyword key before accessing it
2 parents a850f0a + d07e9bf commit a087f5f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/imap/handler_modules.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1384,7 +1384,7 @@ public function process() {
13841384

13851385
$terms = [[search_since_based_on_setting($this->user_config), $date]];
13861386

1387-
if ($this->request->get['keyword']) {
1387+
if (array_key_exists('keyword', $this->request->get) && $this->request->get['keyword']) {
13881388
$keyword = validate_search_terms($this->request->get['keyword']);
13891389
$terms[] = [validate_search_fld(DEFAULT_SEARCH_FLD), $keyword];
13901390
}

0 commit comments

Comments
 (0)