From aa19cf976dcc3d49ab69310ee5fb3bcd0682ab3a Mon Sep 17 00:00:00 2001
From: Axel Rutz <axel.rutz@clever-systems.net>
Date: Mon, 2 May 2011 22:51:48 +0200
Subject: [PATCH] fix #1144954

---
 drupalforfirebug.module |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drupalforfirebug.module b/drupalforfirebug.module
index 2f11398..2bc0eb2 100644
--- a/drupalforfirebug.module
+++ b/drupalforfirebug.module
@@ -473,7 +473,7 @@ function drupalforfirebug_array_compare_code($a, $b, $c = array(), $history = ar
     }
 
     // Set the Proper Element
-    if (isset($akeys[$x]) && is_array($a[$akeys[$x]])) { // is b a valid array
+    if (isset($akeys[$x]) && is_array($a[$akeys[$x]]) && $bkeys) { // is b a valid array
       if (isset($c[$akeys[$x]])) {
         $aval = &$a[$akeys[$x]];
         $bval = &$b[$akeys[$x]];
-- 
1.7.1

