Explorar el Código

Add a default URL value

Alexis Degrugillier hace 12 años
padre
commit
80d576dac7
Se han modificado 1 ficheros con 3 adiciones y 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~',