diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/rssfuncs.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/include/rssfuncs.php b/include/rssfuncs.php index 43c02c7f4..43d931fc8 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); } |