diff options
author | Sam Wilson <sam@samwilson.id.au> | 2013-12-04 15:38:39 +0800 |
---|---|---|
committer | Sam Wilson <sam@samwilson.id.au> | 2013-12-04 15:38:39 +0800 |
commit | 89b7cd9498165f7057ea81d7156bc96aac435ce1 (patch) | |
tree | 4cd8a0f4a9886123681f4db4677690a942a42ec4 | |
parent | 8047a080cb6de7693f1bb51216078f46e1624033 (diff) | |
download | planet-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.php | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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"; +} |