*** empty log message ***

This commit is contained in:
jengo 2001-04-04 07:14:31 +00:00
parent 9d84574505
commit 01c30a42d0

View File

@ -269,17 +269,24 @@
{ {
return filesystem_separator(); return filesystem_separator();
} }
/*! /*!
@function error_list @function error_list
@abstract ??? @abstract This is used for reporting errors in a nice format.
@param $error ??? @param $error - array of errors
*/ */
function error_list($error) function error_list($errors)
{ {
$html_error = '<table border="0" width="50%"><tr><td align="right"><b>' . lang('error') . '</b>: </td><td align="left">' . $error[0] . '</td></tr>'; if (! is_array($errors))
{
return False;
}
for ($i=1; $i<count($error); $i++) { $html_error = '<table border="0" width="50%"><tr><td align="right"><b>' . lang('error')
$html_error .= '<tr><td>&nbsp;</td><td align="left">' . $error[$i] . '</td></tr>'; . '</b>: </td><td align="left">' . $errors[0] . '</td></tr>';
for ($i=1; $i<count($errors); $i++)
{
$html_error .= '<tr><td>&nbsp;</td><td align="left">' . $errors[$i] . '</td></tr>';
} }
return $html_error . '</table>'; return $html_error . '</table>';
} }