svnno****@sourc*****
svnno****@sourc*****
2009年 1月 21日 (水) 17:04:40 JST
Revision: 964 http://svn.sourceforge.jp/view?root=slashdotjp&view=rev&rev=964 Author: tach Date: 2009-01-21 17:04:40 +0900 (Wed, 21 Jan 2009) Log Message: ----------- fix HumanConf.pm to prevent warnings Modified Paths: -------------- slashjp/trunk/debian/changelog slashjp/trunk/plugins/HumanConf/HumanConf.pm -------------- next part -------------- Modified: slashjp/trunk/debian/changelog =================================================================== --- slashjp/trunk/debian/changelog 2009-01-20 11:13:22 UTC (rev 963) +++ slashjp/trunk/debian/changelog 2009-01-21 08:04:40 UTC (rev 964) @@ -1,8 +1,9 @@ slash (2.5.0.233-4) unstable; urgency=low * Add regen-all command to re-generate all story shtml files + * fix HumanConf.pm to prevent warnings - -- Taku YASUI <tach****@osdn*****> Tue, 20 Jan 2009 10:24:44 +0000 + -- Taku YASUI <tach****@osdn*****> Wed, 21 Jan 2009 08:04:17 +0000 slash (2.5.0.233-3) unstable; urgency=low Modified: slashjp/trunk/plugins/HumanConf/HumanConf.pm =================================================================== --- slashjp/trunk/plugins/HumanConf/HumanConf.pm 2009-01-20 11:13:22 UTC (rev 963) +++ slashjp/trunk/plugins/HumanConf/HumanConf.pm 2009-01-21 08:04:40 UTC (rev 964) @@ -92,6 +92,8 @@ # Create an entry in the humanconf table associating the # already-created formkey with this answer/html. + my $failed = $slashdb->sqlCount("humanconf", "formkey='$formkey'"); + return 0 if $failed; my $success = $slashdb->sqlInsert("humanconf", { hcpid => $hcpid, formkey => $formkey,