[Slashdotjp-dev 619] CVS update: slashjp/themes/slashcode/htdocs

Zurück zum Archiv-Index

Tatsuki SUGIURA sugi****@users*****
2006年 9月 8日 (金) 14:46:18 JST


Index: slashjp/themes/slashcode/htdocs/users.pl
diff -u slashjp/themes/slashcode/htdocs/users.pl:1.12 slashjp/themes/slashcode/htdocs/users.pl:1.13
--- slashjp/themes/slashcode/htdocs/users.pl:1.12	Wed Aug 30 17:54:09 2006
+++ slashjp/themes/slashcode/htdocs/users.pl	Fri Sep  8 14:46:18 2006
@@ -2,7 +2,7 @@
 # This code is a part of Slash, and is released under the GPL.
 # Copyright 1997-2005 by Open Source Technology Group. See README
 # and COPYING for more information, or see http://slashcode.com/.
-# $Id: users.pl,v 1.12 2006/08/30 08:54:09 sugi Exp $
+# $Id: users.pl,v 1.13 2006/09/08 05:46:18 sugi Exp $
 
 use strict;
 use Digest::MD5 'md5_hex';
@@ -1180,9 +1180,9 @@
 		}
 
 		$comment->{points} += $user->{karma_bonus}
-			if $user->{karma_bonus} && $comment->{karma_bonus} eq 'yes';
+			if defined($user->{karma_bonus}) && $comment->{karma_bonus} eq 'yes';
 		$comment->{points} += $user->{subscriber_bonus}
-			if $user->{subscriber_bonus} && $comment->{subscriber_bonus} eq 'yes';
+			if defined($user->{subscriber_bonus}) && $comment->{subscriber_bonus} eq 'yes';
 
 		# fix points in case they are out of bounds
 		$comment->{points} = $constants->{comment_minscore} if $comment->{points} < $constants->{comment_minscore};


Slashdotjp-dev メーリングリストの案内
Zurück zum Archiv-Index