Cleaned up error handling in glmMembersAdminAjax()
authorChuck Scott <cscott@gaslightmedia.com>
Wed, 30 Mar 2016 17:30:35 +0000 (13:30 -0400)
committerChuck Scott <cscott@gaslightmedia.com>
Wed, 30 Mar 2016 17:30:35 +0000 (13:30 -0400)
controllers/admin.php

index 7a3388a..624f6d9 100644 (file)
@@ -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();