summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorBrion Vibber <brion@pobox.com>2010-02-25 09:11:07 -0800
committerBrion Vibber <brion@pobox.com>2010-02-25 09:11:07 -0800
commit66373f8e5af5b903bf32ab4a58f2f7477bd45c79 (patch)
tree331a61aadc11c82b44147900d4c617e49e47985a /scripts
parent5a6967db6cbe0e864c8d542700008bba99a7b095 (diff)
parentddef800ec94dc9d9c7cdc3a81bb1c1fadaad0db2 (diff)
Merge commit 'refs/merge-requests/2220' of git://gitorious.org/statusnet/mainline into integration
Diffstat (limited to 'scripts')
-rw-r--r--scripts/updateavatarurl.php4
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 . " ".