mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 16:32:18 +02:00
MDL-78036 behat: Fix php81 deprecation warning
This commit is contained in:
parent
090baf556e
commit
278ce49b7f
@ -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