Skip to content

Commit 3ecfc51

Browse files
committed
Fix strpos() warning
1 parent d6af190 commit 3ecfc51

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

locallib.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ function hvp_get_core_assets($context) {
109109
// Do not use $PAGE->requires when viewing via mobile (aka a webservice).
110110
global $ME;
111111

112-
if (strpos($ME, 'webservice') == false) {
112+
if (strpos($ME ?? '', 'webservice') == false) {
113113
// Add core stylesheets.
114114
foreach (\H5PCore::$styles as $style) {
115115
$url = generate_css_url('library/' . $style);

0 commit comments

Comments
 (0)