diff --git a/profiler_builder.module b/profiler_builder.module
index da6fc5b..0c8cfb6 100644
--- a/profiler_builder.module
+++ b/profiler_builder.module
@@ -119,9 +119,17 @@ function _profiler_builder_info_file(&$info, &$vars, &$drush) {
    foreach($result as $value) {
     $val = variable_get($value->name, '');
     if ($val != '') {
-      if (is_array($val)) {
+      if (is_object($val)) {
+        if (is_object($ary_val)) {
+          drupal_set_message(t("The variable '@name' could not be evaluated. Please add it manually if it is needed.", array('@name' => $value->name)), 'error');
+        }
+      }
+      elseif (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 '@name' could not be evaluated. Please add it manually if it is needed.", array('@name' => $value->name)), '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) {
