Skip to content

Commit

Permalink
minor spacig changes
Browse files Browse the repository at this point in the history
  • Loading branch information
detain committed Jul 2, 2017
1 parent 173c5e0 commit 0265da2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -116,16 +116,16 @@ public static function getTerminate(GenericEvent $event) {
$hash = $serverdata[$settings['PREFIX'].'_key'];
$ip = $serverdata[$settings['PREFIX'].'_ip'];
if (trim($serviceClass->getUsername()) == '')
return true;
return TRUE;
list($user, $pass) = explode(':', $hash);
$vesta = new \Detain\MyAdminVestaCP\VestaCP($ip, $user, $pass);
myadmin_log(self::$module, 'info', "Calling vesta->suspendAccount({$serviceClass->getUsername()})", __LINE__, __FILE__);
if ($vesta->deleteAccount($serviceClass->getUsername())) {
myadmin_log(self::$module, 'info', 'Success, Response: '.json_encode($vesta->response), __LINE__, __FILE__);
return true;
return TRUE;
} else {
myadmin_log(self::$module, 'info', 'Failure, Response: '.json_encode($vesta->response), __LINE__, __FILE__);
return false;
return FALSE;
}
$event->stopPropagation();
}
Expand Down

0 comments on commit 0265da2

Please sign in to comment.