little validation added

This commit is contained in:
Erik Amaru Ortiz
2014-07-08 13:27:21 -04:00
parent 93fa36fd95
commit 9839edbaf1

View File

@@ -4,7 +4,7 @@ $response->status = isset($_SESSION['USER_LOGGED']);
if (isset($_REQUEST['dynaformEditorParams'])) {
$arrayParameterAux = @unserialize(rawurldecode($_REQUEST["dynaformEditorParams"]));
if (is_array($arrayParameterAux)) {
if (! empty($arrayParameterAux) && isset($arrayParameterAux["DYNAFORM_NAME"])) {
$arrayParameterAux["DYNAFORM_NAME"] = base64_decode($arrayParameterAux["DYNAFORM_NAME"]);
$_SESSION["Current_Dynafom"]["Parameters"] = $arrayParameterAux;