From 5a450b87609b6638e1dcb288d9e566f005735f56 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Wed, 13 Nov 2013 20:36:15 +0400 Subject: [PATCH] add workaround for languagedetect idiotic shit of some kind --- include/rssfuncs.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/include/rssfuncs.php b/include/rssfuncs.php index 43c02c7f..43d931fc 100644 --- a/include/rssfuncs.php +++ b/include/rssfuncs.php @@ -599,7 +599,12 @@ if (count($entry_language) > 0) { $entry_language = array_keys($entry_language); - $entry_language = db_escape_string(substr($entry_language[0], 0, 2)); + + // the fuck? + if (is_array($entry_language)) + $entry_language = ""; + else + $entry_language = db_escape_string(substr($entry_language[0], 0, 2)); _debug("detected language: $entry_language", $debug_enabled); } -- 2.39.5