diff --git a/classes/Profile.php b/classes/Profile.php index a37821e1be..794dc1de93 100644 --- a/classes/Profile.php +++ b/classes/Profile.php @@ -118,7 +118,7 @@ class Profile extends Memcached_DataObject } function delete_avatars() { - $avatar = DB_DataObject::factory('avatar'); + $avatar = new Avatar(); $avatar->profile_id = $this->id; $avatar->find(); while ($avatar->fetch()) {