From de0a838d408e9fa4898b67cc10622406bee80037 Mon Sep 17 00:00:00 2001 From: Joe Huss Date: Thu, 31 Oct 2019 17:11:21 -0400 Subject: [PATCH] variable fix --- src/cpanel.inc.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/cpanel.inc.php b/src/cpanel.inc.php index ec621e4..bb33876 100644 --- a/src/cpanel.inc.php +++ b/src/cpanel.inc.php @@ -68,7 +68,7 @@ function deactivate_cpanel($ipAddress = false) return false; } } - myadmin_log('licenses', 'error', 'deactivate_cpanel('.$ipAddress.') gave unexpected output:'.json_encode($response), __LINE__, __FILE__, $module); + myadmin_log('licenses', 'error', 'deactivate_cpanel('.$ipAddress.') gave unexpected output:'.json_encode($response), __LINE__, __FILE__, 'licenses'); return false; } @@ -154,8 +154,8 @@ function get_cpanel_licenses() } function get_cpanel_accounts_for_license_ip($ip) { - $data = get_cpanel_license_data_by_ip($ip); - if ($data === false) - return false; - return $data['accounts']; + $data = get_cpanel_license_data_by_ip($ip); + if ($data === false) + return false; + return $data['accounts']; } \ No newline at end of file