[Slashdotjp-dev 721] [229] * Fix warning: Use of uninitialized value and hash key at

アーカイブの一覧に戻る

svnno****@sourc***** svnno****@sourc*****
2007年 10月 25日 (木) 20:46:58 JST


Revision: 229
          http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=slashdotjp&view=rev&rev=229
Author:   tach
Date:     2007-10-25 20:46:58 +0900 (Thu, 25 Oct 2007)

Log Message:
-----------
 * Fix warning: Use of uninitialized value and hash key at
   templateEdit() in 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-25 09:27:40 UTC (rev 228)
+++ slashjp/trunk/debian/changelog	2007-10-25 11:46:58 UTC (rev 229)
@@ -12,8 +12,10 @@
   * Fix warning: Wide character in print at plugins/Admin/admin.pl
   * Fix warning: Use of uninitialized value in substitution iterator at
     fixparam() in Slash/Utility/Data/Data.pm
+  * Fix warning: Use of uninitialized value and hash key at
+    templateEdit() in plugins/Admin/admin.pl
 
- -- Taku YASUI <tach****@osdn*****>  Wed, 24 Oct 2007 19:16:59 +0900
+ -- Taku YASUI <tach****@osdn*****>  Thu, 25 Oct 2007 20:45:36 +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-25 09:27:40 UTC (rev 228)
+++ slashjp/trunk/plugins/Admin/admin.pl	2007-10-25 11:46:58 UTC (rev 229)
@@ -449,7 +449,7 @@
 
 	$templateref = $slashdb->getTemplate($tpid, '', 1) if $tpid;
 
-	$seclev_flag = 0 if $templateref->{seclev} > $user->{seclev};
+	$seclev_flag = 0 if ($tpid && $templateref->{seclev} > $user->{seclev});
 
 	if ($form->{templatedelete}) {
 		$templatedelete_flag = 1;
@@ -460,7 +460,7 @@
 		my $getskin = $skin eq 'All' ? '' : $skin;
 
 		unless ($form->{templateskin} || $form->{templatepage} || $form->{templatepageandskin} || $form->{templatesearch}) {
-			$form->{ $form->{templatelastselect} } = 1;
+			$form->{ $form->{templatelastselect} } = 1 if $form->{templatelastselect};
 		}
 
 		if ($form->{templateskin}) {


Slashdotjp-dev メーリングリストの案内
アーカイブの一覧に戻る