From 61cd2888a31d6da7b50562c67f95f886e04fbd5c Mon Sep 17 00:00:00 2001 From: Nicolas Boisselier Date: Sun, 27 Mar 2016 22:54:50 +0100 Subject: [PATCH] wrong bye backtrace deep --- lib/php/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/php/functions.php b/lib/php/functions.php index a3e92f6b..00ac3474 100644 --- a/lib/php/functions.php +++ b/lib/php/functions.php @@ -96,7 +96,7 @@ function txt2md($txt) { function bye($msg='__bye__',$backtrace_deep=0) { #if ($msg) err($msg,'bye',$backtrace_deep === 0 ? 1 : $backtrace_deep); - if ($msg!=='__bye__') err($msg,'bye',( $backtrace_deep !== false ? (1+$backtrace_deep) : $backtrace_deep )); + if ($msg!=='__bye__') err($msg,'bye',( $backtrace_deep !== false ? (1+-1+$backtrace_deep) : $backtrace_deep )); #if ($msg) err($msg,'bye',1+$backtrace_deep); exit; #die("Can't exit from BYE!!!"); -- 2.47.3