From ede97c264d01165d341fddfae6d06c69ddb3591d Mon Sep 17 00:00:00 2001 From: OpenShift guest Date: Mon, 12 Aug 2013 13:47:31 -0400 Subject: [PATCH] Added additional verification of value (when is array) --- action.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.php b/action.php index 86fd7d5..c3cf1d0 100644 --- a/action.php +++ b/action.php @@ -74,7 +74,7 @@ function handle_io_write(&$event, $param) { global $INFO; if(!$this->hlp->in_namespace($this->getConf('apr_namespaces'), $ID)) { return; } if($INFO['perm'] < AUTH_DELETE) { return true; } - if($ACT != 'save') { return true; } + if(($ACT != 'save') && (!array_key_exists ( 'save' , $ACT))) { return true; } if(!$event->data[3]) { return true; } # don't approve the doc being moved to archive if($_POST['approved']) { $data = pageinfo();