From 128b3367880fd18e4179123b4e533d14902b484c Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Sun, 8 Mar 2020 00:08:20 +0100 Subject: Fix share warning with Wallabag (#2817) #fix https://github.com/FreshRSS/FreshRSS/issues/2812 Co-authored-by: Frans de Jonge --- app/Models/Share.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'app/Models/Share.php') diff --git a/app/Models/Share.php b/app/Models/Share.php index cf9966a4b..1fc3c493e 100644 --- a/app/Models/Share.php +++ b/app/Models/Share.php @@ -260,7 +260,9 @@ class FreshRSS_Share { } foreach ($transform as $action) { - $data = call_user_func($action, $data); + if (is_string($action) && $action != '') { + $data = call_user_func($action, $data); + } } return $data; -- cgit v1.2.3