summaryrefslogtreecommitdiff
path: root/include/rssfuncs.php
diff options
context:
space:
mode:
authorJonathon Padfield <[email protected]>2014-08-20 01:16:52 +0000
committerJonathon Padfield <[email protected]>2014-08-20 01:16:52 +0000
commit5d2e74a95e2bd159346f31c79b4afa08e6ac1d2c (patch)
tree586d216e98e4b30b647bfbc356716e7fe430e20e /include/rssfuncs.php
parentaa9f7d444729c3136e0549518eebf0c4c108d818 (diff)
Minor refactor for php v5.3, which doens't support immediate dereferencing of array entries
Diffstat (limited to 'include/rssfuncs.php')
-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 {