From 01c30a42d0246deace166bd3c1b0246f0558ed7c Mon Sep 17 00:00:00 2001 From: jengo Date: Wed, 4 Apr 2001 07:14:31 +0000 Subject: [PATCH] *** empty log message *** --- phpgwapi/inc/class.common.inc.php | 37 ++++++++++++++++++------------- 1 file changed, 22 insertions(+), 15 deletions(-) diff --git a/phpgwapi/inc/class.common.inc.php b/phpgwapi/inc/class.common.inc.php index 7f7665a28f..50690364e2 100644 --- a/phpgwapi/inc/class.common.inc.php +++ b/phpgwapi/inc/class.common.inc.php @@ -264,25 +264,32 @@ return $s; } - // Look at the note towards the top of this file (jengo) - function filesystem_separator() - { - return filesystem_separator(); - } + // Look at the note towards the top of this file (jengo) + function filesystem_separator() + { + return filesystem_separator(); + } + /*! @function error_list - @abstract ??? - @param $error ??? + @abstract This is used for reporting errors in a nice format. + @param $error - array of errors */ - function error_list($error) - { - $html_error = ''; + function error_list($errors) + { + if (! is_array($errors)) + { + return False; + } - for ($i=1; $i'; - } - return $html_error . '
' . lang('error') . ': ' . $error[0] . '
'; - } + $html_error = ''; + for ($i=1; $i'; + } + return $html_error . '
' . lang('error') + . ': ' . $errors[0] . '
'; + } /*! @function check_owner