diff options
-rw-r--r-- | classes/Profile.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/classes/Profile.php b/classes/Profile.php index a37821e1b..794dc1de9 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()) { |