projects
/
tweeper.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
tweeper.php: check the return value of Tweeper::tweep()
[tweeper.git]
/
tweeper.php
diff --git
a/tweeper.php
b/tweeper.php
index
b1809ed
..
0955a11
100644
(file)
--- a/
tweeper.php
+++ b/
tweeper.php
@@
-442,4
+442,8
@@
if (!isset($options['src_url'])) {
}
$tweeper = new Tweeper($options['generate_enclosure']);
-echo $tweeper->tweep($options['src_url']);
+$output = $tweeper->tweep($options['src_url']);
+if (is_null($output)) {
+ exit(1);
+}
+echo $output;