|
|
@@ -460,7 +460,7 @@ Router::getRoute("UrlAction_BiAuditGenerate")->' . $function . ';
|
|
|
$result = DB::getPDO()->fetchAll($query);
|
|
|
if (!$result) throw new Exception("Błąd danych");
|
|
|
$powiazanie = $result[0];
|
|
|
- if (!preg_match('/^[[:digit:]]+(,[[:digit:]]+)?$/', $powiazanie['BI_analiza_employees'])) throw new Exception("Błąd danych");
|
|
|
+ if (!preg_match('/^[[:digit:]]+(,[[:digit:]]+)*$/', $powiazanie['BI_analiza_employees'])) throw new Exception("Błąd danych");
|
|
|
$query = "select ID from BI_audit_ALL where REMOTE_TABLE = 'BI_audit_ENERGA_PRACOWNICY' and REMOTE_ID in ({$powiazanie['BI_analiza_employees']})";
|
|
|
$result = DB::getPDO()->fetchAll($query);
|
|
|
|