Browse Source

Add a default URL value

Alexis Degrugillier 12 năm trước cách đây
mục cha
commit
80d576dac7
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  1. 3 0
      app/Models/Share.php

+ 3 - 0
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~',