MDL-78036 behat: Fix php81 deprecation warning

This commit is contained in:
Eloy Lafuente (stronk7) 2023-04-26 11:54:28 +02:00
parent 4ed782dd03
commit 16e101ff72
No known key found for this signature in database
GPG Key ID: 53487A05E6228820

View File

@ -60,7 +60,7 @@ TPL;
$search = $this->searchcriterion;
// If there is a specific type (given, when or then) required.
if (strpos($search, '&&') !== false) {
if ($search && strpos($search, '&&') !== false) {
list($search, $type) = explode('&&', $search);
}