summaryrefslogtreecommitdiff
path: root/modules/toolbar
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2010-03-10 14:46:23 +0000
committerDries Buytaert <dries@buytaert.net>2010-03-10 14:46:23 +0000
commit879eb7ef3c37bc06bc8dc3e78180bbaedb0a3063 (patch)
tree630097f0eb3f8c7dc86d2517d5e7eb822e2fda04 /modules/toolbar
parent61569498046f531db5d06ad48009d69c59ccd26b (diff)
downloadbrdo-879eb7ef3c37bc06bc8dc3e78180bbaedb0a3063.tar.gz
brdo-879eb7ef3c37bc06bc8dc3e78180bbaedb0a3063.tar.bz2
- Patch #715762 and #684268 by seutje, casey: large gap above node preview in overlay.
Diffstat (limited to 'modules/toolbar')
-rw-r--r--modules/toolbar/toolbar.module2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/toolbar/toolbar.module b/modules/toolbar/toolbar.module
index 228ae8173..779351a5b 100644
--- a/modules/toolbar/toolbar.module
+++ b/modules/toolbar/toolbar.module
@@ -142,7 +142,7 @@ function toolbar_pre_render($toolbar) {
* Add some page classes, so global page theming can adjust to the toolbar.
*/
function toolbar_preprocess_html(&$vars) {
- if (user_access('access toolbar')) {
+ if (isset($vars['page_top']['toolbar']) && user_access('access toolbar')) {
$vars['classes_array'][] = 'toolbar';
if (!_toolbar_is_collapsed()) {
$vars['classes_array'][] = 'toolbar-drawer';