Unverified Commit 774ec709 authored by Tobias Haider's avatar Tobias Haider Committed by GitHub
Browse files

Merge pull request #149 from paladox/patch-1

Fix "count(): Parameter must be an array or an object that implements Countable"
parents eb8b3442 62f00b74
......@@ -527,7 +527,7 @@ class TweekiTemplate extends BaseTemplate {
case 'LANGUAGES':
$items = $this->data['language_urls'];
if (count($items) > 0 && $items) {
if (is_array($items) && count($items) > 0 && $items) {
return [[
'href' => '#',
'text' => wfMessage( 'otherlanguages' ),
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment