use correct class for avatar deletion so memcached is updated

darcs-hash:20081113063850-5ed1f-15c314239e2114b52beb7c83b7006b69a48ec5c3.gz
This commit is contained in:
Evan Prodromou 2008-11-13 01:38:50 -05:00
parent e0c3bf5a75
commit 34528df6d9

View File

@ -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()) {