Make sure $remote is set before using can_find_similar method.

        Patch by kareila. 

diffs (12 lines):

diff -r e7c9a1c30739 -r 1caed5101568 htdocs/interests.bml
--- a/htdocs/interests.bml      Sat Jul 17 10:33:42 2010 -0500
+++ b/htdocs/interests.bml      Sat Jul 17 10:57:34 2010 -0500
@@ -141,7 +141,7 @@ body<=
     if (!$did_post && $GET{'mode'} eq "findsim_do") {
         return $ML{'error.tempdisabled'} unless 
LJ::is_enabled('interests-findsim');
 
-        return $ML{'.findsim_do.account.notallowed'} unless 
$remote->can_find_similar;
+        return $ML{'.findsim_do.account.notallowed'} unless $remote && 
$remote->can_find_similar;
 
         my $ret = "";
         my $u = LJ::load_user($GET{'user'});
_______________________________________________
dw-changelog mailing list
[email protected]
http://lists.dwscoalition.org/mailman/listinfo/dw-changelog

Reply via email to