From: Chuck Scott Date: Wed, 30 Mar 2016 17:30:35 +0000 (-0400) Subject: Cleaned up error handling in glmMembersAdminAjax() X-Git-Tag: v2.0.0^2~42 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/index.cgi?a=commitdiff_plain;h=bdd34e84efca00b90f033672034eb1acb857348e;p=WP-Plugins%2Fglm-member-db.git Cleaned up error handling in glmMembersAdminAjax() --- 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();