Don't output empty footer items in desktop Minerva
These fields can be false. Make sure we don't output them Change-Id: If40c27f85e61558d09b14f4f4cfe394f581929b5
This commit is contained in:
parent
05734ca433
commit
f4ec2330e2
|
@ -49,7 +49,7 @@ class MinervaTemplate extends BaseTemplate {
|
|||
foreach ( $data['footerlinks'] as $category => $links ) {
|
||||
$items = [];
|
||||
foreach ( $links as $link ) {
|
||||
if ( isset( $this->data[$link] ) && $data[$link] !== '' ) {
|
||||
if ( isset( $this->data[$link] ) && $data[$link] !== '' && $data[$link] !== false ) {
|
||||
$items[] = [
|
||||
'category' => $category,
|
||||
'name' => $link,
|
||||
|
|
Loading…
Reference in New Issue