Fix scoping problem with conditional variable assignment.

        Patch by alierak. 

diffs (13 lines):

diff -r 43c370a701e8 -r ea171f7eb151 cgi-bin/LJ/User.pm
--- a/cgi-bin/LJ/User.pm        Mon Jan 11 18:59:36 2010 +0000
+++ b/cgi-bin/LJ/User.pm        Tue Jan 12 14:07:27 2010 -0600
@@ -4220,7 +4220,8 @@ sub get_interests {
 
     # load the ids
     my $mk_ids = [$uid, "intids:$uid"];
-    my $ids = LJ::MemCache::get($mk_ids) unless $opts->{forceids};
+    my $ids;
+    $ids = LJ::MemCache::get($mk_ids) unless $opts->{forceids};
     unless ( $ids && ref $ids eq "ARRAY" ) {
         $ids = [];
         my $dbh = LJ::get_db_writer();
_______________________________________________
dw-changelog mailing list
[email protected]
http://lists.dwscoalition.org/mailman/listinfo/dw-changelog

Reply via email to