1
0
mirror of https://tt-rss.org/git/tt-rss.git synced 2024-06-20 11:16:36 +02:00

Minor refactor for php v5.3, which doens't support immediate dereferencing of array entries

This commit is contained in:
Jonathon Padfield 2014-08-20 01:16:52 +00:00
parent aa9f7d4447
commit 5d2e74a95e

View File

@ -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 {