1
1
Fork 0

Added brackets

This commit is contained in:
Michael 2020-10-03 16:17:18 +00:00
parent 2cd54320e4
commit 26e9efc746

View file

@ -2478,7 +2478,7 @@ class Item
$naked_body = BBCode::toPlaintext($item['body'], false); $naked_body = BBCode::toPlaintext($item['body'], false);
$ld = new Language; $ld = new Language();
$languages = $ld->detect($naked_body)->limit(0, 3)->close(); $languages = $ld->detect($naked_body)->limit(0, 3)->close();
if (is_array($languages)) { if (is_array($languages)) {
return json_encode($languages); return json_encode($languages);