Skip to content

Commit

Permalink
fixed xdebug logical error
Browse files Browse the repository at this point in the history
  • Loading branch information
Aleksander Koko authored and Aleksander Koko committed Sep 26, 2016
1 parent ee87d10 commit 20934d9
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions plugins/restapi2/call.php
Expand Up @@ -8,18 +8,18 @@
require_once 'vendor/autoload.php';

// Disable HTML output as HTML cannot be easily read during HTTP POST testing
//ini_set( 'html_errors', 0 );
ini_set( 'html_errors', 0 );

// Disable xdebug HTML outputif debug is disabled and function exists
/*if (
! isset( $GLOBALS['DEBUG'] ) || $GLOBALS['DEBUG'] == 0
if (
(! isset( $GLOBALS['DEBUG'] ) || $GLOBALS['DEBUG'] == 0)
&& function_exists( 'xdebug_disable' )
) {
xdebug_disable();
}*/
}

// Check that the plugin has been initiatlised
//defined( 'PHPLISTINIT' ) || die;
defined( 'PHPLISTINIT' ) || die;

// No HTML-output, please!
ob_end_clean();
Expand Down

0 comments on commit 20934d9

Please sign in to comment.