Skip to content

Commit

Permalink
Fix strpos() warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Fragonite committed Nov 28, 2024
1 parent d6af190 commit 3ecfc51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion locallib.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ function hvp_get_core_assets($context) {
// Do not use $PAGE->requires when viewing via mobile (aka a webservice).
global $ME;

if (strpos($ME, 'webservice') == false) {
if (strpos($ME ?? '', 'webservice') == false) {
// Add core stylesheets.
foreach (\H5PCore::$styles as $style) {
$url = generate_css_url('library/' . $style);
Expand Down

0 comments on commit 3ecfc51

Please sign in to comment.