diff options
author | nashe <thomas@chauchefoin.fr> | 2017-07-13 11:58:25 +0100 |
---|---|---|
committer | nashe <thomas@chauchefoin.fr> | 2017-07-13 11:58:25 +0100 |
commit | 98931f76847928a418b798344ccd714bacde7591 (patch) | |
tree | b3da775de4016d811e1d0216f1c66fb28645dc4a | |
parent | 8fcba6dbb462eda45c15de9ebaff117eaec721c4 (diff) | |
download | planet-98931f76847928a418b798344ccd714bacde7591.tar planet-98931f76847928a418b798344ccd714bacde7591.tar.gz planet-98931f76847928a418b798344ccd714bacde7591.tar.bz2 planet-98931f76847928a418b798344ccd714bacde7591.tar.xz planet-98931f76847928a418b798344ccd714bacde7591.zip |
Only display $Planet->errors in debug mode
-rwxr-xr-x | index.php | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -45,6 +45,8 @@ if (!OutputCache::Start($_GET['type'], $cache_key, $cache_duration)) { OutputCache::End(); } -echo "<!--"; -var_dump($Planet->errors); -echo "-->"; +if ($conf['debug'] === true) { + echo "<!-- \$Planet->errors:\n"; + var_dump($Planet->errors); + echo "-->"; +} |