Skip to content

Commit 80db7ed

Browse files
committed
Compatibility fix for php 7.4
1 parent 41e86a9 commit 80db7ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/RaspAP/Plugins/PluginInstaller.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ public function getUserPlugins()
7878

7979
if (!empty($plugin['namespace'])) {
8080
foreach ($installedPlugins as $installedPlugin) {
81-
if (str_contains($installedPlugin['class'], $plugin['namespace'])) {
81+
if (strpos($installedPlugin['class'], $plugin['namespace']) !== false) {
8282
$installed = true;
8383
break;
8484
}

0 commit comments

Comments
 (0)