update php

This commit is contained in:
joBr99
2022-08-30 23:11:09 +02:00
parent 3e2ddc5177
commit 36deff9a34
2 changed files with 2 additions and 2 deletions

View File

@@ -60,7 +60,7 @@ with open(os.path.join(__location__, "../../../ip-symcon", "icon_mapping.php"),
function get_icon($name) {
global $icons;
if (str_contains('text:', $name)) {
if (strpos('text:', $name) !== false) {
return str_replace('text:', "", $name);
}
$ma_name = str_replace('mdi:', "", $name);

View File

@@ -6900,7 +6900,7 @@ $icons = [
function get_icon($name) {
global $icons;
if (str_contains('text:', $name)) {
if (strpos('text:', $name) !== false) {
return str_replace('text:', "", $name);
}
$ma_name = str_replace('mdi:', "", $name);