mirror of
https://github.com/Mibew/i18n.git
synced 2025-01-22 21:40:28 +03:00
Fix notice about undef $errors in operator/operators.php
This commit is contained in:
parent
a23d9fa216
commit
2d08fda940
@ -24,6 +24,7 @@ csrfchecktoken();
|
|||||||
|
|
||||||
if (isset($_GET['act'])) {
|
if (isset($_GET['act'])) {
|
||||||
|
|
||||||
|
$errors = array();
|
||||||
$operatorid = isset($_GET['id']) ? $_GET['id'] : "";
|
$operatorid = isset($_GET['id']) ? $_GET['id'] : "";
|
||||||
if (!preg_match("/^\d+$/", $operatorid)) {
|
if (!preg_match("/^\d+$/", $operatorid)) {
|
||||||
$errors[] = getlocal("no_such_operator");
|
$errors[] = getlocal("no_such_operator");
|
||||||
|
Loading…
Reference in New Issue
Block a user