kareila: (Default)
kareila ([personal profile] kareila) wrote in [site community profile] changelog2010-07-26 10:19 pm

[dw-free] migrate LJ::set_userprop to $u->set_prop

[commit: http://hg.dwscoalition.org/dw-free/rev/3cb76b9d702a]

http://bugs.dwscoalition.org/show_bug.cgi?id=2657

Function expects an arrayref, not an array.

Patch by [personal profile] kareila.

Files modified:
  • cgi-bin/LJ/User.pm
--------------------------------------------------------------------------------
diff -r 80fc5970ffae -r 3cb76b9d702a cgi-bin/LJ/User.pm
--- a/cgi-bin/LJ/User.pm	Sun Jul 25 06:10:42 2010 -0500
+++ b/cgi-bin/LJ/User.pm	Mon Jul 26 17:18:48 2010 -0500
@@ -2887,7 +2887,7 @@ sub set_prop {
             return 0 if $u->err;
 
             # set memcache and update user object
-            $memc->( $propid, $pvalue );
+            $memc->( [ $propid, $pvalue ] );
         }
     }
 
--------------------------------------------------------------------------------