]> git.wh0rd.org - tt-rss.git/commitdiff
Merge branch 'master' of github.com:gothfox/Tiny-Tiny-RSS
authorAndrew Dolgov <noreply@fakecake.org>
Wed, 20 Aug 2014 08:02:06 +0000 (12:02 +0400)
committerAndrew Dolgov <noreply@fakecake.org>
Wed, 20 Aug 2014 08:02:06 +0000 (12:02 +0400)
include/rssfuncs.php

index 614cdaa839535af7fe7eb74b5dfef693ad95d7d9..cec44cd8eb54115b5266bd3f132da6e32430a85d 100644 (file)
                                        $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 {