Commit 21910c61 by Alexander Makarov

Fixes #4310: code cleanup

parent e54fc6f4
...@@ -482,10 +482,6 @@ class DbManager extends BaseManager ...@@ -482,10 +482,6 @@ class DbManager extends BaseManager
return null; return null;
} }
if (!isset($row['data']) || ($data = @unserialize($row['data'])) === false) {
$data = null;
}
return new Assignment([ return new Assignment([
'userId' => $row['user_id'], 'userId' => $row['user_id'],
'roleName' => $row['item_name'], 'roleName' => $row['item_name'],
...@@ -504,9 +500,6 @@ class DbManager extends BaseManager ...@@ -504,9 +500,6 @@ class DbManager extends BaseManager
$assignments = []; $assignments = [];
foreach ($query->all($this->db) as $row) { foreach ($query->all($this->db) as $row) {
if (!isset($row['data']) || ($data = @unserialize($row['data'])) === false) {
$data = null;
}
$assignments[$row['item_name']] = new Assignment([ $assignments[$row['item_name']] = new Assignment([
'userId' => $row['user_id'], 'userId' => $row['user_id'],
'roleName' => $row['item_name'], 'roleName' => $row['item_name'],
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment