[Slashdotjp-dev 723] [231] * Fix warning: Use of uninitialized value at

Back to archive index

svnno****@sourc***** svnno****@sourc*****
2007年 10月 26日 (金) 15:07:26 JST


Revision: 231
          http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=slashdotjp&view=rev&rev=231
Author:   tach
Date:     2007-10-26 15:07:26 +0900 (Fri, 26 Oct 2007)

Log Message:
-----------
 * Fix warning: Use of uninitialized value at
   getDescForTopicsRendered() at plugins/Admin/admin.pl

Modified Paths:
--------------
    slashjp/trunk/debian/changelog
    slashjp/trunk/plugins/Admin/admin.pl


-------------- next part --------------
Modified: slashjp/trunk/debian/changelog
===================================================================
--- slashjp/trunk/debian/changelog	2007-10-26 06:03:35 UTC (rev 230)
+++ slashjp/trunk/debian/changelog	2007-10-26 06:07:26 UTC (rev 231)
@@ -15,8 +15,10 @@
   * Fix warning: Use of uninitialized value and hash key at
     templateEdit() in plugins/Admin/admin.pl
   * Allow to change LDAPDB DEBUG_LEVEL using vars "ldap_debug_level"
+  * Fix warning: Use of uninitialized value at
+    getDescForTopicsRendered() at plugins/Admin/admin.pl
 
- -- Taku YASUI <tach****@osdn*****>  Fri, 26 Oct 2007 15:01:29 +0900
+ -- Taku YASUI <tach****@osdn*****>  Fri, 26 Oct 2007 15:06:24 +0900
 
 slash (2.5.0.119-17) unstable; urgency=low
 

Modified: slashjp/trunk/plugins/Admin/admin.pl
===================================================================
--- slashjp/trunk/plugins/Admin/admin.pl	2007-10-26 06:03:35 UTC (rev 230)
+++ slashjp/trunk/plugins/Admin/admin.pl	2007-10-26 06:07:26 UTC (rev 231)
@@ -1708,7 +1708,7 @@
 	my $user = getCurrentUser();
 	my $tree = $slashdb->getTopicTree();
 	my $mainpage_nexus_tid = getCurrentStatic("mainpage_nexus_tid");
-	my $primary_nexus_tid  = $slashdb->getNexusFromSkid($primaryskid);
+	my $primary_nexus_tid  = $primaryskid ? $slashdb->getNexusFromSkid($primaryskid) || 0;
 	my @story_nexuses        = grep { $tree->{$_}{nexus} } keys %$topics_rendered;
 
 	my @sorted_nexuses = 	map { $_->[1] } 


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