Fix PM\PBlock model
This commit is contained in:
parent
d641c18b59
commit
493256a9a8
1 changed files with 2 additions and 2 deletions
|
@ -56,8 +56,8 @@ class PBlock extends Model
|
|||
while ($row = $stmt->fetch()) {
|
||||
if ($row['bl_first_id'] === $user->id) {
|
||||
$this->repository[$user->id][$row['bl_second_id']] = $row['bl_second_id'];
|
||||
} elseif ($row['bl_second_id'] !== $user->id) {
|
||||
$this->repository[$row['bl_second_id']] = true;
|
||||
} else {
|
||||
$this->repository[$row['bl_first_id']] = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue