Explorar o código

Add a default URL value

Alexis Degrugillier %!s(int64=12) %!d(string=hai) anos
pai
achega
80d576dac7
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  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~',