summaryrefslogtreecommitdiffstats
path: root/cron.php
diff options
context:
space:
mode:
authornashe <thomas@chauchefoin.fr>2017-07-16 12:17:27 +0200
committernashe <thomas@chauchefoin.fr>2017-07-16 12:17:27 +0200
commit662f5fa67d03520215a0334318b3afe95d51c2d3 (patch)
tree3660ad5d136a3440df8e9cf05318ba9a9f346872 /cron.php
parent35351f2e6fbcd5ef999ae711cc100f6c203a5101 (diff)
downloadplanet-662f5fa67d03520215a0334318b3afe95d51c2d3.tar
planet-662f5fa67d03520215a0334318b3afe95d51c2d3.tar.gz
planet-662f5fa67d03520215a0334318b3afe95d51c2d3.tar.bz2
planet-662f5fa67d03520215a0334318b3afe95d51c2d3.tar.xz
planet-662f5fa67d03520215a0334318b3afe95d51c2d3.zip
Hide errors of cron.php if not in debug mode
Diffstat (limited to 'cron.php')
-rw-r--r--cron.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/cron.php b/cron.php
index ead1a1e..9cc56a6 100644
--- a/cron.php
+++ b/cron.php
@@ -6,6 +6,8 @@ if (0 < $Planet->loadOpml(__DIR__.'/custom/people.opml')) {
$Planet->download(1.0);
}
-foreach ($Planet->errors as $error) {
- echo $error->toString()."\n";
-}
+if ($conf['debug'] === true) {
+ foreach ($Planet->errors as $error) {
+ echo $error->toString() . "\n";
+ }
+} \ No newline at end of file