[Slashdotjp-dev 1404] [935] prevent warning messages

アーカイブの一覧に戻る

svnno****@sourc***** svnno****@sourc*****
2009年 1月 9日 (金) 18:11:30 JST


Revision: 935
          http://svn.sourceforge.jp/view?root=slashdotjp&view=rev&rev=935
Author:   tach
Date:     2009-01-09 18:11:29 +0900 (Fri, 09 Jan 2009)

Log Message:
-----------
prevent warning messages

Modified Paths:
--------------
    slashjp/trunk/plugins/FireHose/FireHose.pm
    slashjp/trunk/plugins/FireHose/firehose_backend.pl


-------------- next part --------------
Modified: slashjp/trunk/plugins/FireHose/FireHose.pm
===================================================================
--- slashjp/trunk/plugins/FireHose/FireHose.pm	2009-01-09 08:03:28 UTC (rev 934)
+++ slashjp/trunk/plugins/FireHose/FireHose.pm	2009-01-09 09:11:29 UTC (rev 935)
@@ -2196,6 +2196,7 @@
 sub genUntitledTab {
 	my($self, $user_tabs, $options) = @_;
 	my $user = getCurrentUser();
+	$options ||= {};
 
 	my $tab_compare = {
 		filter 		=> "fhfilter"
@@ -2216,7 +2217,7 @@
 			}
 		}
 
-		if ($options->{tab} eq $tab->{tabname}) {
+		if (defined($options->{tab}) && $options->{tab} eq $tab->{tabname}) {
 			$tab->{active} = 1;
 		}
 		

Modified: slashjp/trunk/plugins/FireHose/firehose_backend.pl
===================================================================
--- slashjp/trunk/plugins/FireHose/firehose_backend.pl	2009-01-09 08:03:28 UTC (rev 934)
+++ slashjp/trunk/plugins/FireHose/firehose_backend.pl	2009-01-09 09:11:29 UTC (rev 935)
@@ -53,8 +53,8 @@
 	$content_type ||= "rss";
 
 	slashdLog("$base $skin $label $color '$filter'");
-	use Data::Dumper;
-	slashdLog(Dumper($opts)) if $opts;
+	#use Data::Dumper;
+	#slashdLog(Dumper($opts)) if $opts;
 
 	$form->{color} = $color;
 	$form->{fhfilter} = $filter;


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