]> git.nbdom.net Git - nb.git/commitdiff
lib/php/nb.php
authorNicolas Boisselier <nicolas.boisselier@gmail.com>
Thu, 11 Jan 2018 00:26:34 +0000 (00:26 +0000)
committerNicolas Boisselier <nicolas.boisselier@gmail.com>
Thu, 11 Jan 2018 00:26:34 +0000 (00:26 +0000)
lib/php/nb.php
lib/php/out.php

index 3c804d54956dc0ad80c718d8b7af64a6ed730235..730624c82d22b7fea8190bfb7cb93f1c7cf44909 100644 (file)
@@ -163,9 +163,7 @@ class NB {
                        exit(1);
                }
 
-               #if ($msg) err($msg,'bye',1+$backtrace_deep);
                exit;
-               #die("Can't exit from BYE!!!");
        }
 
        public static function err($msg='__err__',$preff='err',$backtrace_deep=0) {
@@ -173,10 +171,8 @@ class NB {
                $preff_msg = $preff ? strtoupper($preff).': ' : '';
 
                if ($msg !== '__err__' and $backtrace_deep !== false) {
-                       $msg = trim($preff_msg.$msg).' '
-                               .self::debug_backtrace_msg(1+$backtrace_deep,NULL,$preff_msg)
-                               #.self::debug_backtrace_msg(1+$backtrace_deep,NULL)
-                       ;
+                       $msg = trim($preff_msg.$msg);
+                       if (true or !NB_PROD) $msg .= ' '.self::debug_backtrace_msg(1+$backtrace_deep,NULL,$preff_msg);
 
                } else { 
                        $msg = $preff_msg.$msg;
index ebfddd339542a353b31b105a24db0633d124dbd2..d7f4c2b898bdec87f0de720e9dfd2dda5a9fa420 100644 (file)
@@ -228,7 +228,7 @@ Class Out extends Nb {
 
     self::type_call('end',$o);
     if (isset($o['enclose'])) echo $o['enclose'][1];
-    unset($o['row_count']);
+    unset($o['row_count'],$o['rows']);
 
   }