summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2014-08-20 12:02:06 +0400
committerAndrew Dolgov <[email protected]>2014-08-20 12:02:06 +0400
commit05a8caddf50f85cb459d161126d74861bf325b34 (patch)
treea4ab240a29d783f6e87e5293da328c0c9d70a521 /include
parentfafac207c5a7bb610c4a2ce473cc677eeca92e4e (diff)
parent76fc1f83e17ed462a13547e62535f577d136250b (diff)
Merge branch 'master' of github.com:gothfox/Tiny-Tiny-RSS
Diffstat (limited to 'include')
-rw-r--r--include/rssfuncs.php3
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 {