[Slashdotjp-dev 1535] [1066] * Remove warning "Use of uninitialized value in int at

Back to archive index

svnno****@sourc***** svnno****@sourc*****
2009年 3月 11日 (水) 18:02:28 JST


Revision: 1066
          http://svn.sourceforge.jp/view?root=slashdotjp&view=rev&rev=1066
Author:   tach
Date:     2009-03-11 18:02:28 +0900 (Wed, 11 Mar 2009)

Log Message:
-----------
 * Remove warning "Use of uninitialized value in int at
   /usr/lib/perl5/Slash/DB/MySQL.pm line 12950."

Modified Paths:
--------------
    slashjp/trunk/Slash/DB/MySQL/MySQL.pm
    slashjp/trunk/debian/changelog


-------------- next part --------------
Modified: slashjp/trunk/Slash/DB/MySQL/MySQL.pm
===================================================================
--- slashjp/trunk/Slash/DB/MySQL/MySQL.pm	2009-03-11 08:49:13 UTC (rev 1065)
+++ slashjp/trunk/Slash/DB/MySQL/MySQL.pm	2009-03-11 09:02:28 UTC (rev 1066)
@@ -12947,8 +12947,8 @@
 	my ($self, $sign, $discussion, $options) = @_;
 	my $constants = getCurrentStatic();
 	$options = {} if !$options || ref($options) ne 'HASH';
-	my $uid = int($options->{uid}) || undef;
-	my $dkid = int($options->{dkid}) || undef;
+	my $uid = $options->{uid} ? int($options->{uid}) : undef;
+	my $dkid = $options->{dkid} ? int($options->{dkid}) : undef;
 	my $where = '';
 	my $order = $sign eq '<' ? 'DESC' : 'ASC';
 

Modified: slashjp/trunk/debian/changelog
===================================================================
--- slashjp/trunk/debian/changelog	2009-03-11 08:49:13 UTC (rev 1065)
+++ slashjp/trunk/debian/changelog	2009-03-11 09:02:28 UTC (rev 1066)
@@ -1,8 +1,10 @@
 slash (2.5.0.233-7) unstable; urgency=low
 
   * Fix slow query on getStoryByTime()
+  * Remove warning "Use of uninitialized value in int at
+    /usr/lib/perl5/Slash/DB/MySQL.pm line 12950."
 
- -- Taku YASUI <tach****@osdn*****>  Wed, 11 Mar 2009 08:45:22 +0000
+ -- Taku YASUI <tach****@osdn*****>  Wed, 11 Mar 2009 09:01:31 +0000
 
 slash (2.5.0.233-6) unstable; urgency=low
 



Slashdotjp-dev メーリングリストの案内
Back to archive index