Explorar o código

Quick fix small bug from 1619 (#1633)

https://github.com/FreshRSS/FreshRSS/pull/1619
Alexandre Alapetite %!s(int64=8) %!d(string=hai) anos
pai
achega
2e8d8834c4
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      app/Models/Feed.php

+ 2 - 2
app/Models/Feed.php

@@ -485,12 +485,12 @@ class FreshRSS_Feed extends Minz_Model {
 				CURLOPT_FOLLOWLOCATION => true,
 				CURLOPT_RETURNTRANSFER => true,
 				CURLOPT_USERAGENT => 'FreshRSS/' . FRESHRSS_VERSION . ' (' . PHP_OS . '; ' . FRESHRSS_WEBSITE . ')',
-				CURLOPT_POSTFIELDS => http_build_query(
+				CURLOPT_POSTFIELDS => http_build_query(array(
 					'hub.verify' => 'sync',
 					'hub.mode' => ($state ? 'subscribe' : 'unsubscribe'),
 					'hub.topic' => urlencode($url),
 					'hub.callback' => urlencode($callbackUrl),
-					)
+					))
 				)
 			);
 			$response = curl_exec($ch);