diff --git a/index.php b/index.php index 5dac7df..d4b776c 100644 --- a/index.php +++ b/index.php @@ -32,7 +32,7 @@ if (!isset($config)) $config = []; $action = (isset($_REQUEST['action']) and preg_match(ACTION_REGEX, $_REQUEST['action'])) ? $_REQUEST['action'] : null; -$supplier = array_key_exist('supplier', $_REQUEST) ? $_REQUEST['supplier'] : $requestSupplier; +$supplier = array_key_exists('supplier', $_REQUEST) ? $_REQUEST['supplier'] : $requestSupplier; $hasSupplier = is_string($supplier) and preg_match(SUPPLIER_REGEX, $supplier); if ($hasSupplier) { @@ -116,7 +116,7 @@ if ($action === 'config') { } try { - $event = array_key_exist('event', $_REQUEST) ? $_REQUEST['event'] : $requestEvent; + $event = array_key_exists('event', $_REQUEST) ? $_REQUEST['event'] : $requestEvent; $hasEvent = ( is_string($event) and preg_match(EVENT_REGEX, $event)