Fix notice about undef $errors in operator/operators.php

This commit is contained in:
Dmitriy Simushev 2013-04-26 09:57:26 +00:00
parent a23d9fa216
commit 2d08fda940

View File

@ -24,6 +24,7 @@ csrfchecktoken();
if (isset($_GET['act'])) {
$errors = array();
$operatorid = isset($_GET['id']) ? $_GET['id'] : "";
if (!preg_match("/^\d+$/", $operatorid)) {
$errors[] = getlocal("no_such_operator");