Hush more warnings.

        Patch by kareila. 

diffs (24 lines):

diff -r 7563fc11f80c -r 8c90fc6a9f74 cgi-bin/LJ/S2.pm
--- a/cgi-bin/LJ/S2.pm  Thu Dec 16 22:53:38 2010 +0800
+++ b/cgi-bin/LJ/S2.pm  Thu Dec 16 22:57:45 2010 +0800
@@ -88,7 +88,7 @@ sub make_journal
     # let layouts disable EntryPage / ReplyPage, using the BML version
     # instead.  Unless we are using siteviews, because that is what
     # will be handling the "BML" views.
-    if ($styleid eq "siteviews") {
+    if ( $styleid && $styleid eq "siteviews" ) {
         $r->notes->{ 'no_control_strip' } = 1;
 
         # kill the flag
@@ -735,9 +735,9 @@ sub s2_context
         }
     };
 
-    if ( $styleid eq "siteviews" ) {
+    if ( $styleid && $styleid eq "siteviews" ) {
         %style = siteviews_style( $u, $remote, $opts{mode} );
-    } elsif ( $styleid eq "sitefeeds" ) {
+    } elsif ( $styleid && $styleid eq "sitefeeds" ) {
         %style = sitefeeds_style();
     }
 
_______________________________________________
dw-changelog mailing list
[email protected]
http://lists.dwscoalition.org/mailman/listinfo/dw-changelog

Reply via email to