aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/functions.inc.php11
1 files changed, 2 insertions, 9 deletions
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 = '<pre>';
$error.= $header;
$error.= '[mysql error '.mysql_errno().'] ';
$error.= mysql_error();
$error.= '</pre>';
- if ($echo)
- {
- echo $error;
- }
- else
- {
- return $error;
- }
+ die ($error);
}
?>