forked from mirror/Part-DB.Part-DB-server
Fixed some inspection issues.
This commit is contained in:
parent
782e2b7fdf
commit
0f3ba9b6a8
19 changed files with 109 additions and 139 deletions
|
@ -78,14 +78,14 @@ abstract class AttachmentContainingDBElement extends NamedDBElement
|
|||
|
||||
foreach ($attachements as $key => $attachement) {
|
||||
if (($only_table_attachements && (! $attachement->getShowInTable()))
|
||||
|| ($type_id && ($attachement->getType()->getID() != $type_id))) {
|
||||
|| ($type_id && ($attachement->getType()->getID() !== $type_id))) {
|
||||
unset($attachements[$key]);
|
||||
}
|
||||
}
|
||||
|
||||
return $attachements;
|
||||
} else {
|
||||
return $this->attachments;
|
||||
}
|
||||
|
||||
return $this->attachments;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue