Sometimes a whole array needs to be set in session (installer).
[mailer.git] / inc / wrapper-functions.php
index a2056a92461246f82e8a23530f7eada900468315..002159c42ae160008726177b5b6e4d396ba2054f 100644 (file)
@@ -3572,8 +3572,14 @@ function getGenericHashFileName () {
 
 // "Compiles" the given value and sets it in given key
 function setSessionCompiled ($key, $value) {
-       // "Compile" the value
-       $value = doFinalCompilation(compileRawCode($value));
+       // Debug message
+       //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'key[]=' . gettype($key) . ',value[]=' . gettype($value));
+
+       // Is the value not an array?
+       if (!is_array($value)) {
+               // "Compile" the value
+               $value = doFinalCompilation(compileRawCode($value));
+       } // END - if
 
        // And set it
        return setSession($key, $value);