diff options
author | Brion Vibber <brion@pobox.com> | 2010-02-25 09:28:19 -0800 |
---|---|---|
committer | Brion Vibber <brion@pobox.com> | 2010-02-25 09:28:19 -0800 |
commit | 4a71753f2046a17a98c139cc308ff7f77bd4f271 (patch) | |
tree | 62dd8f435ac83661df7238e372e87e5dd9de3988 /scripts/updateavatarurl.php | |
parent | 22255da735d1fc55466be51c3fae2a3d0b78e484 (diff) | |
parent | 84fa3776e28ed438169e732327616208c89837e2 (diff) |
Merge branch 'master' of gitorious.org:statusnet/mainline into testing
Diffstat (limited to 'scripts/updateavatarurl.php')
-rw-r--r-- | scripts/updateavatarurl.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/updateavatarurl.php b/scripts/updateavatarurl.php index 617c2e24c..3b6681bae 100644 --- a/scripts/updateavatarurl.php +++ b/scripts/updateavatarurl.php @@ -94,11 +94,11 @@ function updateAvatars($user) } } - $orig = clone($avatar); + $orig_url = $avatar->url; $avatar->url = Avatar::url($avatar->filename); - if ($avatar->url != $orig->url) { + if ($avatar->url != $orig_url) { $sql = "UPDATE avatar SET url = '" . $avatar->url . "' ". "WHERE profile_id = " . $avatar->profile_id . " ". |