summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornashe <thomas@chauchefoin.fr>2017-07-13 11:58:25 +0100
committernashe <thomas@chauchefoin.fr>2017-07-13 11:58:25 +0100
commit98931f76847928a418b798344ccd714bacde7591 (patch)
treeb3da775de4016d811e1d0216f1c66fb28645dc4a
parent8fcba6dbb462eda45c15de9ebaff117eaec721c4 (diff)
downloadplanet-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-xindex.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/index.php b/index.php
index a58d32c..7b7fbed 100755
--- a/index.php
+++ b/index.php
@@ -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 "-->";
+}