diff --git a/include/functions.inc.php b/include/functions.inc.php index 77be51606..0ac10f7a8 100644 --- a/include/functions.inc.php +++ b/include/functions.inc.php @@ -609,20 +609,13 @@ function get_thumbnail_src($path, $tn_ext = '') // my_error returns (or send to standard output) the message concerning the // error occured for the last mysql query. -function my_error($header, $echo = true) +function my_error($header) { $error = '
';
   $error.= $header;
   $error.= '[mysql error '.mysql_errno().'] ';
   $error.= mysql_error();
   $error.= '
'; - if ($echo) - { - echo $error; - } - else - { - return $error; - } + die ($error); } ?>