Fix issue : Delete likes of a group when deleting it

This commit is contained in:
Pierre HUBERT 2019-04-26 23:46:07 +02:00
parent 8a91a42e83
commit fe702519b1

View File

@ -708,6 +708,10 @@ class GroupsComponent {
*/
public function delete_group(int $groupID) : bool {
// Delete all the likes of the group
if(!components()->likes->delete_all($groupID, Likes::LIKE_GROUP))
return FALSE;
//Delete group image
if(!$this->deleteLogo($groupID))
return FALSE;