From 2f2642bbd4bf040b07d1bba5fd2a93da5bd74cf6 Mon Sep 17 00:00:00 2001 From: Frenck Lutke Date: Thu, 25 Feb 2021 12:06:25 +0100 Subject: [PATCH] add fallback for feed_language on edit-feed-saving Feed_language is only included in the form if running on pgsql, failing the not null constraint on mysql setups. --- classes/pref/feeds.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/pref/feeds.php b/classes/pref/feeds.php index 086c52697..755413f13 100755 --- a/classes/pref/feeds.php +++ b/classes/pref/feeds.php @@ -710,7 +710,7 @@ class Pref_Feeds extends Handler_Protected { $mark_unread_on_update = checkbox_to_sql_bool( clean($_POST["mark_unread_on_update"] ?? "")); - $feed_language = clean($_POST["feed_language"]); + $feed_language = clean($_POST["feed_language"] ?? ""); if (!$batch) {