diff options
author | nashe <thomas@chauchefoin.fr> | 2017-07-16 12:17:27 +0200 |
---|---|---|
committer | nashe <thomas@chauchefoin.fr> | 2017-07-16 12:17:27 +0200 |
commit | 662f5fa67d03520215a0334318b3afe95d51c2d3 (patch) | |
tree | 3660ad5d136a3440df8e9cf05318ba9a9f346872 /cron.php | |
parent | 35351f2e6fbcd5ef999ae711cc100f6c203a5101 (diff) | |
download | planet-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.php | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -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 |