aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2017-11-04 21:34:34 +0100
committerGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2017-11-04 21:34:34 +0100
commit38de643d090effd487730f7406589f2f3d7bb169 (patch)
tree61daf4ef02c406a2b2eec112f1f5611f85720b96
parentafffbfce0758391a52c8c0c5b9766643a49065e8 (diff)
Small fix Mastodon share
$a['method'] can be undefined. https://github.com/FreshRSS/FreshRSS/pull/1674 https://github.com/FreshRSS/FreshRSS/issues/1521
-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));