|
|
@ -274,7 +274,7 @@ if (!$isConfig and !$supplierIsNew and $hasSupplier) { |
|
|
|
foreach (['name', 'choice', 'action'] as $field) |
|
|
|
$item[$field] = filter_var($_REQUEST[$field], FILTER_SANITIZE_STRING); |
|
|
|
$item['timestamp'] = time(); |
|
|
|
$hash = md5(implode([ $item['name'], $item['choice'], ])); |
|
|
|
$hash = md5(implode([ trim($item['name']), $item['choice'], ])); |
|
|
|
$item['hash'] = $hash; |
|
|
|
|
|
|
|
$isBeginning = (!file_exists(DATA_FILE) or in_array(filesize(DATA_FILE), [ false, 0 ])); |
|
|
|