Skip to content

Commit 218bb11

Browse files
authored
Pass along args if not applicable
1 parent 9f4401f commit 218bb11

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

nodeapp.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,7 @@ public function get_pm2_log( $pm2_id ) {
218218
*/
219219
public function hcpp_invoke_plugin( $args ) {
220220
global $hcpp;
221+
if (count($args) < 2) return $args; // Exit early
221222
$username = preg_replace( "/[^a-zA-Z0-9-_]+/", "", $args[1] ); // Sanitized username
222223
switch ( $args[0] ) {
223224
case 'nodeapp_pm2_jlist':

0 commit comments

Comments
 (0)