diff options
author | Andrew Dolgov <[email protected]> | 2014-08-20 12:02:06 +0400 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2014-08-20 12:02:06 +0400 |
commit | 05a8caddf50f85cb459d161126d74861bf325b34 (patch) | |
tree | a4ab240a29d783f6e87e5293da328c0c9d70a521 | |
parent | fafac207c5a7bb610c4a2ce473cc677eeca92e4e (diff) | |
parent | 76fc1f83e17ed462a13547e62535f577d136250b (diff) |
Merge branch 'master' of github.com:gothfox/Tiny-Tiny-RSS
-rw-r--r-- | include/rssfuncs.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/rssfuncs.php b/include/rssfuncs.php index 614cdaa83..cec44cd8e 100644 --- a/include/rssfuncs.php +++ b/include/rssfuncs.php @@ -621,7 +621,8 @@ $entry_language = $lang->detect($entry_title . " " . $entry_content, 1); if (count($entry_language) > 0) { - @$entry_language = array_keys($entry_language)[0]; + $possible = array_keys($entry_language); + $entry_language = $possible[0]; _debug("detected language: $entry_language", $debug_enabled); } else { |