From 3fb8dcdc85805138fe3e1595580559814674b290 Mon Sep 17 00:00:00 2001 From: Adam Backstrom Date: Thu, 25 Jul 2013 18:08:32 -0400 Subject: [PATCH] Make ActionSerialize more meaningful Otherwise, we're only serializing strings. --- classes.php | 2 +- index.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/classes.php b/classes.php index b0b2770..0542aa0 100644 --- a/classes.php +++ b/classes.php @@ -136,7 +136,7 @@ class ActionSerialize extends AbstractAction public function decode() { - return serialize( $this->value ); + return serialize( json_decode( $this->value ) ); } } diff --git a/index.php b/index.php index e500544..f9331af 100644 --- a/index.php +++ b/index.php @@ -39,7 +39,7 @@ if( 'POST' === $_SERVER['REQUEST_METHOD'] ) { - +