From 879eb7ef3c37bc06bc8dc3e78180bbaedb0a3063 Mon Sep 17 00:00:00 2001
From: Dries Buytaert <dries@buytaert.net>
Date: Wed, 10 Mar 2010 14:46:23 +0000
Subject: [PATCH] - Patch #715762 and #684268 by seutje, casey: large gap above
 node preview in overlay.

---
 modules/toolbar/toolbar.module | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/toolbar/toolbar.module b/modules/toolbar/toolbar.module
index 228ae8173f63..779351a5bc39 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';
-- 
GitLab