diff options
author | Jonathon Padfield <[email protected]> | 2014-08-20 01:16:52 +0000 |
---|---|---|
committer | Jonathon Padfield <[email protected]> | 2014-08-20 01:16:52 +0000 |
commit | 5d2e74a95e2bd159346f31c79b4afa08e6ac1d2c (patch) | |
tree | 586d216e98e4b30b647bfbc356716e7fe430e20e | |
parent | aa9f7d444729c3136e0549518eebf0c4c108d818 (diff) |
Minor refactor for php v5.3, which doens't support immediate dereferencing of array entries
-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 { |