diff --git a/includes/bootstrap.inc b/includes/bootstrap.inc
index 18f44e2..820bbc3 100644
--- a/includes/bootstrap.inc
+++ b/includes/bootstrap.inc
@@ -657,7 +657,8 @@ function variable_initialize($conf = array()) {
     }
     else {
       // Proceed with variable rebuild.
-      $variables = array_map('unserialize', db_query('SELECT name, value FROM {variable}')->fetchAllKeyed());
+      //this will return error, but will be fixed if double quotes are used
+      $variables = array_map('array_map_syntaxfix', db_query('SELECT name, value FROM {variable}')->fetchAllKeyed());
       cache_set('variables', $variables, 'cache_bootstrap');
       lock_release($name);
     }
diff --git a/includes/common.inc b/includes/common.inc
index 8575844..fee1cb6 100644
--- a/includes/common.inc
+++ b/includes/common.inc
@@ -4806,6 +4806,11 @@ function drupal_json_encode($var) {
   return str_replace(array('<', '>', '&'), array('\u003c', '\u003e', '\u0026'), json_encode($var));
 }
 
+function array_map_syntaxfix($var) {
+  //sample function that will test that array map needs double quote rather than single quote
+  return unserialize($var);
+}
+
 /**
  * Converts an HTML-safe JSON string into its PHP equivalent.
  *
