]> git.wh0rd.org Git - tt-rss.git/commitdiff
Minor refactor for php v5.3, which doens't support immediate dereferencing of array...
authorJonathon Padfield <jonathon.padfield@gmail.com>
Wed, 20 Aug 2014 01:16:52 +0000 (01:16 +0000)
committerJonathon Padfield <jonathon.padfield@gmail.com>
Wed, 20 Aug 2014 01:16:52 +0000 (01:16 +0000)
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 {