summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSam Wilson <sam@samwilson.id.au>2013-12-04 15:38:39 +0800
committerSam Wilson <sam@samwilson.id.au>2013-12-04 15:38:39 +0800
commit89b7cd9498165f7057ea81d7156bc96aac435ce1 (patch)
tree4cd8a0f4a9886123681f4db4677690a942a42ec4
parent8047a080cb6de7693f1bb51216078f46e1624033 (diff)
downloadplanet-89b7cd9498165f7057ea81d7156bc96aac435ce1.tar
planet-89b7cd9498165f7057ea81d7156bc96aac435ce1.tar.gz
planet-89b7cd9498165f7057ea81d7156bc96aac435ce1.tar.bz2
planet-89b7cd9498165f7057ea81d7156bc96aac435ce1.tar.xz
planet-89b7cd9498165f7057ea81d7156bc96aac435ce1.zip
Only produce output if there are any errors to report.
-rw-r--r--cron.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/cron.php b/cron.php
index 77d9d8f..f8fc8ce 100644
--- a/cron.php
+++ b/cron.php
@@ -6,4 +6,6 @@ if (0 < $Planet->loadOpml(dirname(__FILE__).'/custom/people.opml')) {
$Planet->download(1.0);
}
-var_dump($Planet->errors);
+foreach ($Planet->errors as $error) {
+ echo $error->toString()."\n";
+}