Skip to content

Commit 0d949e5

Browse files
committed
Fixed bug where debug_ajax was actually always on and could not be disabled; thanks to Gabriel Moya for reporting!
1 parent ce33a80 commit 0d949e5

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

Zebra_Database.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5256,6 +5256,12 @@ private function _is_debugging_enabled() {
52565256
// debugging is enabled but needs to be logged instead of being shown on the screen
52575257
(is_array($this->debug) && empty(array_filter($this->debug, function($value) { return !(is_bool($value) || $value === 0 || $value === 1); })))
52585258

5259+
// AND
5260+
) && (
5261+
5262+
// not an AJAX request, or an AJAX request and debugging AJAX requests is ON
5263+
!isset($_SERVER['HTTP_X_REQUESTED_WITH']) || $this->debug_ajax
5264+
52595265
// AND
52605266
) && (
52615267

0 commit comments

Comments
 (0)