use correct class for avatar deletion so memcached is updated
darcs-hash:20081113063850-5ed1f-15c314239e2114b52beb7c83b7006b69a48ec5c3.gz
This commit is contained in:
parent
e0c3bf5a75
commit
34528df6d9
@ -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()) {
|
||||
|
Loading…
Reference in New Issue
Block a user