diff --git a/infolog/inc/class.bolink.inc.php b/infolog/inc/class.bolink.inc.php index 2ecbf5e1ab..dbf1e2817d 100644 --- a/infolog/inc/class.bolink.inc.php +++ b/infolog/inc/class.bolink.inc.php @@ -362,7 +362,7 @@ } if (!is_array($id)) { - if (!$app2 && !$id2) + if (!$link_id && !$app2 && !$id2) { $this->delete_attached($app,$id); // deleting all attachments }