web: update of menu tabs patch

This commit is contained in:
Bart Van Der Meerssche 2009-09-09 22:06:07 +00:00
parent 76cbf7524c
commit 5550482ee8
1 changed files with 1 additions and 1 deletions

View File

@ -13,7 +13,7 @@ diff -u -p -r1.255.2.31 menu.inc
- // We do not display single tabs.
- return (isset($tabs[$level]) && $tabs[$level]['count'] > 1) ? $tabs[$level]['output'] : '';
+ // We do not display single tabs: BVDM yes we do for flukso!
+ return (isset($tabs[$level])) ? $tabs[$level]['output'] : '';
+ return (isset($tabs[$level]) && ($tabs[$level]['count'] > 1 || substr_count($tabs[$level]['output'], 'electricity') > 0)) ? $tabs[$level]['output'] : '';
}
}