Пытаюсь выполнить классический пример:
[+phx:mo=`"myWebgroup"`:then=`I’m a member`:else=`I’m NOT a member`+]
Получаю:
Error: mb_strlen() expects parameter 1 to be string, array given
Error type/ Nr.: Warning - 2
File: /var/www/html/assets/plugins/phx/phx.parser.class.inc.php
Line: 209
Line 209 source: $grps = (strlen($modifier_value) > 0 ) ? explode(",",$modifier_value[$i]) :array();
Как пофиксить?
Discere ne cesses
Сам же и пофиксил:
Баг в модуле phx.parser.class.inc.php (PHx 2.1.3) на строке 209:
Должно быть так
$grps = (strlen($modifier_value[$i]) > 0 ) ? explode(",",$modifier_value[$i]) :array();
Discere ne cesses
У меня работает и без фикса.