Fixes #16945: Fixed RBAC DbManager ruleName fetching on the case of PDO::ATTR_ORACLE_NULLS => PDO::NULL_TO_STRING

This commit is contained in:
Razon Yang
2018-12-31 19:43:07 +08:00
committed by Alexander Makarov
parent b128ec85f4
commit 2b79a0c5ba
2 changed files with 2 additions and 1 deletions

View File

@ -451,7 +451,7 @@ class DbManager extends BaseManager
'name' => $row['name'],
'type' => $row['type'],
'description' => $row['description'],
'ruleName' => $row['rule_name'],
'ruleName' => $row['rule_name'] ?: null,
'data' => $data,
'createdAt' => $row['created_at'],
'updatedAt' => $row['updated_at'],