svnno****@sourc*****
svnno****@sourc*****
2007年 10月 24日 (水) 14:35:00 JST
Revision: 214 http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=slashdotjp&view=rev&rev=214 Author: tach Date: 2007-10-24 14:35:00 +0900 (Wed, 24 Oct 2007) Log Message: ----------- Fix: password notification email send fail Modified Paths: -------------- slashjp/trunk/debian/changelog slashjp/trunk/plugins/Messages/Messages.pm -------------- next part -------------- Modified: slashjp/trunk/debian/changelog =================================================================== --- slashjp/trunk/debian/changelog 2007-10-23 09:55:30 UTC (rev 213) +++ slashjp/trunk/debian/changelog 2007-10-24 05:35:00 UTC (rev 214) @@ -6,8 +6,9 @@ * Add enable/disable switch to agree privacy statement on create user * Add libdata-javascript-anon-perl to Depends: - for Ajax plugin + * Fix: password notification email send fail: plugins/Messages/Messages.pm - -- Taku YASUI <tach****@osdn*****> Tue, 23 Oct 2007 18:54:51 +0900 + -- Taku YASUI <tach****@osdn*****> Wed, 24 Oct 2007 14:33:39 +0900 slash (2.5.0.119-17) unstable; urgency=low Modified: slashjp/trunk/plugins/Messages/Messages.pm =================================================================== --- slashjp/trunk/plugins/Messages/Messages.pm 2007-10-23 09:55:30 UTC (rev 213) +++ slashjp/trunk/plugins/Messages/Messages.pm 2007-10-24 05:35:00 UTC (rev 214) @@ -457,7 +457,7 @@ } # Email and Mobile messages are both Email modes, but use different recipients. - if ($msg->{user}{prefs}{$msg->{code}} == $self->getMessageDeliveryByName("Mobile")) { + if ($msg->{user}{prefs}{$msg->{code}} && $msg->{user}{prefs}{$msg->{code}} == $self->getMessageDeliveryByName("Mobile")) { $addr = $msg->{user}{mobile_text_address}; } else { $addr = $msg->{altto} || $msg->{user}{realemail}; @@ -1120,7 +1120,7 @@ my $slashdb = getCurrentDB(); my $name_q = $slashdb->sqlQuote($name); - my $code = $slashdb->sqlSelect("code", "message_deliverymodes", "name = $name_q"); + my $code = $slashdb->sqlSelect("code", "message_deliverymodes", "name = $name_q") || -1; return($code); }