fix ident

This commit is contained in:
joBr99
2022-08-30 23:12:40 +02:00
parent 36deff9a34
commit ac7d1ea520
2 changed files with 2 additions and 2 deletions

View File

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

View File

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