diff --git a/functions.php b/functions.php index f6db0db6..a0dcc544 100644 --- a/functions.php +++ b/functions.php @@ -1436,6 +1436,10 @@ function appNotify($type, $details, $action = null, $client_id = 0, $entity_id = function logAction($type, $action, $description, $client_id = 0, $entity_id = 0) { global $mysqli, $session_user_agent, $session_ip, $session_user_id; + $client_id = intval($client_id); + $entity_id = intval($entity_id); + $session_user_id = intval($session_user_id); + if (empty($session_user_id)) { $session_user_id = 0; } diff --git a/login.php b/login.php index 618e66e0..50f6ea73 100644 --- a/login.php +++ b/login.php @@ -281,12 +281,6 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST' && (isset($_POST['login']) || isset($_ 'created' => time() ]; } - - $response = " -
- This login can be used as either an Agent account or a Client Portal account. - Please choose how you want to continue. -
"; } } else {