Check for output buffer, not for configuration variable which isn't present
authorMartin Kutschker <martin.t.kutschker@blackbox.net>
Wed, 29 Oct 2008 10:09:17 +0000 (10:09 +0000)
committerMartin Kutschker <martin.t.kutschker@blackbox.net>
Wed, 29 Oct 2008 10:09:17 +0000 (10:09 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@4377 709f56b5-9817-0410-a4d7-c38de5d9e867

typo3/sysext/openid/class.tx_openid_return.php

index 39c3af8..e001f8e 100644 (file)
@@ -34,7 +34,7 @@
  *\r
  */\r
 \r
-if (!$TYPO3_CONF_VARS['BE']['compressionLevel']) {\r
+if (ob_get_level()==0) {\r
        // We need to buffer output because we may need to redirect later.\r
        // If we do not buffer, redirection may fail because output could be\r
        // started in init.php\r