From f26d5df81e39946aade55ab9eee1b9db6bd1666d Mon Sep 17 00:00:00 2001 From: aurovrata Date: Sat, 21 Jan 2017 21:46:59 +0530 Subject: [PATCH] fixed bug --- admin/class-cf7-multislide-admin.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/admin/class-cf7-multislide-admin.php b/admin/class-cf7-multislide-admin.php index f85e9fc..0f66503 100755 --- a/admin/class-cf7-multislide-admin.php +++ b/admin/class-cf7-multislide-admin.php @@ -258,12 +258,12 @@ function intermediate_slides($cf7) { * @return array merged list of data fields from all slides if this is last slide. */ function merge_all_slide_posted_data($posted_data){ - //error_log("Multislide INITIAL data: \n".print_r($posted_data,true)); //Is this a multislide form? - $security = $posted_data['cf7slide_security']; - if( empty($security) ){ + if( !isset($posted_data['cf7slide_security']) ){ return $posted_data; } + $security = $posted_data['cf7slide_security']; + $current_slide = $posted_data['current_slide']; $total_slides = $posted_data['total_slides'];