diff options
| author | 2014-03-02 09:24:02 -0500 | |
|---|---|---|
| committer | 2014-03-02 09:24:02 -0500 | |
| commit | 80d576dac71bcae14fa7b695f3966b6a7c384a25 (patch) | |
| tree | 44d6539e8c6eb3eed4ecfeddc54fd008164088a4 /app/Models/Share.php | |
| parent | b07f9157b18bffdb28833ed1363284571be3644e (diff) | |
Add a default URL value
Diffstat (limited to 'app/Models/Share.php')
| -rw-r--r-- | app/Models/Share.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/app/Models/Share.php b/app/Models/Share.php index b146db722..887fcef05 100644 --- a/app/Models/Share.php +++ b/app/Models/Share.php @@ -3,6 +3,9 @@ class FreshRSS_Share { static public function generateUrl($options, $selected, $link, $title) { + if (!array_key_exists('url', $selected)) { + $selected['url'] = ''; + } $share = $options[$selected['type']]; $matches = array( '~URL~', |
