Browse Source

corrige une typo

master
vince vince 2 years ago
parent
commit
4c0e16c082
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      index.php

+ 2
- 2
index.php View File

@ -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)


Loading…
Cancel
Save