From bdd34e84efca00b90f033672034eb1acb857348e Mon Sep 17 00:00:00 2001 From: Chuck Scott Date: Wed, 30 Mar 2016 13:30:35 -0400 Subject: [PATCH] Cleaned up error handling in glmMembersAdminAjax() --- controllers/admin.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/controllers/admin.php b/controllers/admin.php index 7a3388af..624f6d90 100644 --- a/controllers/admin.php +++ b/controllers/admin.php @@ -354,7 +354,9 @@ class glmMembersAdmin extends GlmPluginSupport // Check if no matching action found if (!$actionFound) { - trigger_error ( 'ERROR: The specified action is not valid - '.$glmAction, E_USER_ERROR); + $err = 'ERROR: The specified action is not valid - '.$glmAction; + echo $err; + trigger_error ( $err, E_USER_ERROR); } wp_die(); -- 2.17.1