浏览代码

Add a default URL value

Alexis Degrugillier 12 年之前
父节点
当前提交
80d576dac7
共有 1 个文件被更改,包括 3 次插入0 次删除
  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~',