summaryrefslogtreecommitdiff
path: root/include/rssfuncs.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2013-11-13 20:36:15 +0400
committerAndrew Dolgov <[email protected]>2013-11-13 20:36:15 +0400
commit5a450b87609b6638e1dcb288d9e566f005735f56 (patch)
tree70f884d8e679665c0ec2bb6fd08f6c95694d8816 /include/rssfuncs.php
parent8384af6cc19979cd47279e914fb992fc7e25e6cd (diff)
add workaround for languagedetect idiotic shit of some kind
Diffstat (limited to 'include/rssfuncs.php')
-rw-r--r--include/rssfuncs.php7
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);
}