diff options
author | Aaron Parecki <aaron@parecki.com> | 2016-02-10 18:37:13 -0800 |
---|---|---|
committer | Aaron Parecki <aaron@parecki.com> | 2016-02-10 18:37:13 -0800 |
commit | 022f58d956faaf1a56b80ec25ee4fb06057bc117 (patch) | |
tree | ec1d250b046a0e9c440b973ec85eec2fdd314625 /lib | |
parent | d62b497b401a767c9a8db153726e0c7e1f2c474e (diff) | |
parent | c59616a7c4e99eadafa7b856e5647df60179bb38 (diff) |
Merge branch 'master' of github.com:aaronpk/Quill
Diffstat (limited to 'lib')
-rw-r--r-- | lib/helpers.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/helpers.php b/lib/helpers.php index a2796e1..0407129 100644 --- a/lib/helpers.php +++ b/lib/helpers.php @@ -218,7 +218,7 @@ function get_syndication_targets(&$user) { // If there's a host, and the host contains a . then we can assume there's a favicon // parse_url will parse strings like http://twitter into an array with a host of twitter, which is not resolvable - if(array_key_exists('host', $url) && strpos($url['host'], '.') !== false) { + if($url && array_key_exists('host', $url) && strpos($url['host'], '.') !== false) { $targets[] = array( 'target' => $t, 'favicon' => 'http://' . $url['host'] . '/favicon.ico' @@ -322,4 +322,4 @@ function validate_photo(&$file) { return $e->getMessage(); } -}
\ No newline at end of file +} |