Commit 1664b8b6 authored by Fabianx's avatar Fabianx

Issue #2988184 by jacob.embree, Pol, sjerdo, Jorrit: Fix call to count() on...

Issue #2988184 by jacob.embree, Pol, sjerdo, Jorrit: Fix call to count() on non-countable $links in theme_links()
parent c7ce87b2
......@@ -1782,7 +1782,7 @@ function theme_links($variables) {
global $language_url;
$output = '';
if (count($links) > 0) {
if (!empty($links)) {
// Treat the heading first if it is present to prepend it to the
// list of links.
if (!empty($heading)) {
......
Markdown is supported
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