Browse Source

Merge pull request #444 from aledeg/share

Add a default URL value
Alexandre Alapetite 12 years ago
parent
commit
15db01153e
1 changed files with 3 additions and 0 deletions
  1. 3 0
      app/Models/Share.php

+ 3 - 0
app/Models/Share.php

@@ -3,6 +3,9 @@
 class FreshRSS_Share {
 class FreshRSS_Share {
 
 
 	static public function generateUrl($options, $selected, $link, $title) {
 	static public function generateUrl($options, $selected, $link, $title) {
+		if (!array_key_exists('url', $selected)) {
+			$selected['url'] = '';
+		}
 		$share = $options[$selected['type']];
 		$share = $options[$selected['type']];
 		$matches = array(
 		$matches = array(
 			'~URL~',
 			'~URL~',