mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-08 09:04:53 +01:00
subverted error_list() to use msgbox
This commit is contained in:
parent
d8e16f226c
commit
3a76b0f6f0
@ -359,13 +359,21 @@
|
||||
return False;
|
||||
}
|
||||
|
||||
$html_error = '<table border="0" width="100%"><tr><td align="right"><b>' . lang($text)
|
||||
. '</b>: </td><td align="left">' . $errors[0] . '</td></tr>';
|
||||
for ($i=1; $i<count($errors); $i++)
|
||||
if ($text == 'Error')
|
||||
{
|
||||
$html_error .= '<tr><td> </td><td align="left">' . $errors[$i] . '</td></tr>';
|
||||
$text = '';
|
||||
}
|
||||
return $html_error . '</table>';
|
||||
else
|
||||
{
|
||||
$text .= ': ';
|
||||
}
|
||||
reset($errors);
|
||||
while(list(,$value) = each($errors))
|
||||
{
|
||||
$msgbox_input[$text.$value] = False;
|
||||
|
||||
}
|
||||
return $this->msgbox($msgbox_input);
|
||||
}
|
||||
|
||||
/*!
|
||||
|
Loading…
Reference in New Issue
Block a user