diff --git a/src/7832a726-87b6-4e95-887e-7b725d3fab8f/code.php b/src/7832a726-87b6-4e95-887e-7b725d3fab8f/code.php index 4a26046..a967367 100644 --- a/src/7832a726-87b6-4e95-887e-7b725d3fab8f/code.php +++ b/src/7832a726-87b6-4e95-887e-7b725d3fab8f/code.php @@ -170,7 +170,14 @@ abstract class UserHelper $errors = $model->getError(); if (!empty($errors)) { - $error_messages = '
' . implode('
', $errors); + if (is_array($errors)) + { + $error_messages = '
' . implode('
', $errors); + } + elseif (is_string($errors)) + { + $error_messages = '
' . $errors; + } } } @@ -233,7 +240,14 @@ abstract class UserHelper $errors = $model->getError(); if (!empty($errors)) { - $error_messages = '
' . implode('
', $errors); + if (is_array($errors)) + { + $error_messages = '
' . implode('
', $errors); + } + elseif (is_string($errors)) + { + $error_messages = '
' . $errors; + } } } diff --git a/src/7832a726-87b6-4e95-887e-7b725d3fab8f/code.power b/src/7832a726-87b6-4e95-887e-7b725d3fab8f/code.power index 933a77a..d9ffd01 100644 --- a/src/7832a726-87b6-4e95-887e-7b725d3fab8f/code.power +++ b/src/7832a726-87b6-4e95-887e-7b725d3fab8f/code.power @@ -138,7 +138,14 @@ $errors = $model->getError(); if (!empty($errors)) { - $error_messages = '
' . implode('
', $errors); + if (is_array($errors)) + { + $error_messages = '
' . implode('
', $errors); + } + elseif (is_string($errors)) + { + $error_messages = '
' . $errors; + } } } @@ -201,7 +208,14 @@ $errors = $model->getError(); if (!empty($errors)) { - $error_messages = '
' . implode('
', $errors); + if (is_array($errors)) + { + $error_messages = '
' . implode('
', $errors); + } + elseif (is_string($errors)) + { + $error_messages = '
' . $errors; + } } }