From ceb508698dfef8462c0c5dc131868ede44c962b8 Mon Sep 17 00:00:00 2001 From: aB0t Date: Tue, 3 Sep 2024 00:44:34 +0200 Subject: [PATCH] Update 2024-09-03 00:44:02 --- .../code.php | 18 ++++++++++++++++-- .../code.power | 18 ++++++++++++++++-- 2 files changed, 32 insertions(+), 4 deletions(-) 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; + } } }