We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1c9e53b commit 8a4336eCopy full SHA for 8a4336e
1 file changed
Sources/Actions/AttachmentApprove.php
@@ -100,7 +100,7 @@ public function execute(): void
100
101
while ($row = Db::$db->fetch_assoc($request)) {
102
// We can only add it if we can approve in this board!
103
- if ($allowed_boards = [0] || \in_array($row['id_board'], $allowed_boards)) {
+ if ($allowed_boards === [0] || \in_array($row['id_board'], $allowed_boards)) {
104
$attachments[] = $row['id_attach'];
105
106
// Also come up with the redirection URL.
0 commit comments