|
@@ -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;
|
|
|
}
|
|
|
}
|
|
|
}
|