svnno****@sourc*****
svnno****@sourc*****
2008年 1月 23日 (水) 18:25:10 JST
Revision: 460 http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=slashdotjp&view=rev&rev=460 Author: tach Date: 2008-01-23 18:25:09 +0900 (Wed, 23 Jan 2008) Log Message: ----------- fix to change return value using int() Modified Paths: -------------- slashjp/trunk/themes/slashcode/tasks/freshenup.pl -------------- next part -------------- Modified: slashjp/trunk/themes/slashcode/tasks/freshenup.pl =================================================================== --- slashjp/trunk/themes/slashcode/tasks/freshenup.pl 2008-01-23 08:02:51 UTC (rev 459) +++ slashjp/trunk/themes/slashcode/tasks/freshenup.pl 2008-01-23 09:25:09 UTC (rev 460) @@ -89,12 +89,12 @@ ############################################################ if ($do_all) { - if (my $count = $slashdb->sqlDelete("story_dirty USING story_dirty LEFT JOIN stories USING (stoid)", - "stories.sid IS NULL") ) { + if (my $count = int($slashdb->sqlDelete("story_dirty USING story_dirty LEFT JOIN stories USING (stoid)", + "stories.sid IS NULL"))) { slashdLog("Deleted $count nonexistent stories from story_dirty") if verbosity() >= 1; } - if (my $count = $slashdb->sqlDelete("story_dirty USING story_dirty, story_param", - "story_dirty.stoid=story_param.stoid AND story_param.name='neverdisplay' AND story_param.value=1")) { + if (my $count = int($slashdb->sqlDelete("story_dirty USING story_dirty, story_param", + "story_dirty.stoid=story_param.stoid AND story_param.name='neverdisplay' AND story_param.value=1"))) { slashdLog("Deleted $count neverdisplay stories from story_dirty") if verbosity() >= 1; } }