Update 2024-09-03 00:44:02

This commit is contained in:
Robot 2024-09-03 00:44:34 +02:00
parent a62938ca20
commit ceb508698d
Signed by: Robot
GPG Key ID: 14DECD44E7E1BB95
2 changed files with 32 additions and 4 deletions

View File

@ -170,7 +170,14 @@ abstract class UserHelper
$errors = $model->getError();
if (!empty($errors))
{
$error_messages = '<br>' . implode('<br>', $errors);
if (is_array($errors))
{
$error_messages = '<br>' . implode('<br>', $errors);
}
elseif (is_string($errors))
{
$error_messages = '<br>' . $errors;
}
}
}
@ -233,7 +240,14 @@ abstract class UserHelper
$errors = $model->getError();
if (!empty($errors))
{
$error_messages = '<br>' . implode('<br>', $errors);
if (is_array($errors))
{
$error_messages = '<br>' . implode('<br>', $errors);
}
elseif (is_string($errors))
{
$error_messages = '<br>' . $errors;
}
}
}

View File

@ -138,7 +138,14 @@
$errors = $model->getError();
if (!empty($errors))
{
$error_messages = '<br>' . implode('<br>', $errors);
if (is_array($errors))
{
$error_messages = '<br>' . implode('<br>', $errors);
}
elseif (is_string($errors))
{
$error_messages = '<br>' . $errors;
}
}
}
@ -201,7 +208,14 @@
$errors = $model->getError();
if (!empty($errors))
{
$error_messages = '<br>' . implode('<br>', $errors);
if (is_array($errors))
{
$error_messages = '<br>' . implode('<br>', $errors);
}
elseif (is_string($errors))
{
$error_messages = '<br>' . $errors;
}
}
}