]> git.mxchange.org Git - friendica.git/commitdiff
Don't show multiple calls from the "dba" class to show the essential parts of the...
authorMichael <heluecht@pirati.ca>
Fri, 13 Apr 2018 20:09:12 +0000 (20:09 +0000)
committerMichael <heluecht@pirati.ca>
Fri, 13 Apr 2018 20:09:12 +0000 (20:09 +0000)
src/Core/System.php

index 9d360dff0c58095d139aff816ae5ca1dc2c61f0a..1db417eb88c4ac20dfcb34bea8563e2bc4b458a9 100644 (file)
@@ -64,8 +64,8 @@ class System extends BaseObject
 
                while ($func = array_pop($trace)) {
                        if (!empty($func['class'])) {
-                               // Don't show multiple calls from the same function (mostly used for "dba" class)
-                               if (($previous['class'] != $func['class']) && ($previous['function'] != 'q')) {
+                               // Don't show multiple calls from the "dba" class to show the essential parts of the callstack
+                               if ((($previous['class'] != $func['class']) || ($func['class'] != 'dba')) && ($previous['function'] != 'q')) {
                                        $classparts = explode("\\", $func['class']);
                                        $callstack[] = array_pop($classparts).'::'.$func['function'];
                                        $previous = $func;