diff --git a/db_objects/family.class.php b/db_objects/family.class.php index d4aaf71f..e1703a25 100644 --- a/db_objects/family.class.php +++ b/db_objects/family.class.php @@ -480,7 +480,7 @@ private function savePhoto() { } } - private function _clearPhoto() + private function clearPhoto() { $db =& $GLOBALS['db']; $SQL = 'DELETE FROM family_photo WHERE familyid = '.(int)$this->id; @@ -593,6 +593,7 @@ public function archiveAndClean() $this->setValue($fieldname, ''); } } + $this->clearPhoto(); if (!$this->save(FALSE)) return FALSE; $notes = $GLOBALS['system']->getDBObjectData('family_note', Array('familyid' => $this->id));