mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-11 08:28:43 +01:00
*** empty log message ***
This commit is contained in:
parent
9d84574505
commit
01c30a42d0
@ -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> </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> </td><td align="left">' . $errors[$i] . '</td></tr>';
|
||||||
}
|
}
|
||||||
return $html_error . '</table>';
|
return $html_error . '</table>';
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user