diff --git a/profiler_builder.module b/profiler_builder.module
index da6fc5b..2fdbc09 100644
--- a/profiler_builder.module
+++ b/profiler_builder.module
@@ -121,7 +121,10 @@ function _profiler_builder_info_file(&$info, &$vars, &$drush) {
     if ($val != '') {
       if (is_array($val)) {
         foreach ($val as $key => $ary_val) {
-          if (is_array($ary_val)) {
+          if (is_object($ary_val)) {
+            drupal_set_message(t("The variable '@key' could not be evaluated. Please add it manually if it is needed.", array('@key' => $key)), 'error');
+          }
+          elseif (is_array($ary_val)) {
             foreach ($ary_val as $key2 => $ary_val2) {
               if (is_array($ary_val2)) {
                 foreach ($ary_val2 as $key3 => $ary_val3) {
