aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app/FreshRSS.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/FreshRSS.php b/app/FreshRSS.php
index 8f4ee334c..f53c85bfb 100644
--- a/app/FreshRSS.php
+++ b/app/FreshRSS.php
@@ -111,8 +111,8 @@ class FreshRSS extends Minz_FrontController {
public static function preLayout() {
switch (Minz_Request::controllerName()) {
case 'index':
- $urlToAuthorize = array_filter(array_map(function($a) {
- if ('POST' === $a['method']) {
+ $urlToAuthorize = array_filter(array_map(function ($a) {
+ if (isset($a['method']) && $a['method'] === 'POST') {
return $a['url'];
}
}, FreshRSS_Context::$user_conf->sharing));