From 36deff9a349ac09234ff2839629da8d28ab8dcbe Mon Sep 17 00:00:00 2001 From: joBr99 <29555657+joBr99@users.noreply.github.com> Date: Tue, 30 Aug 2022 23:11:09 +0200 Subject: [PATCH] update php --- HMI/code_gen/icons/icons.py | 2 +- ip-symcon/icon_mapping.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/HMI/code_gen/icons/icons.py b/HMI/code_gen/icons/icons.py index d1971487..8265fdc3 100644 --- a/HMI/code_gen/icons/icons.py +++ b/HMI/code_gen/icons/icons.py @@ -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); diff --git a/ip-symcon/icon_mapping.php b/ip-symcon/icon_mapping.php index 42ec287e..410cfd1e 100644 --- a/ip-symcon/icon_mapping.php +++ b/ip-symcon/icon_mapping.php @@ -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);