When the "All languages" option is selected in the Twingly block configuration no results are returned.

To fix, change:
$lang = (!empty($params['lang'])) ? 'lang:'.implode('|', $params['lang']) : '';

To:
$lang = (!empty($params['lang']) && $params['lang'][0] != '0') ? 'lang:'.implode('|', $params['lang']) : '';

Comments

freakalis’s picture

Status: Active » Fixed

Thanks, fix commited to 1.0.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.