mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
MDL-78036 behat: Fix php81 deprecation warning
This commit is contained in:
parent
4ed782dd03
commit
16e101ff72
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user