sunnyman's (sunnyman) wrote in changelog,
sunnyman's
sunnyman
changelog

[ljcom] r12405: LJSUP-13177: Get rid of warnings in the ...

Committer: vtroitsky
LJSUP-13177: Get rid of warnings in the error log after R95
U   trunk/htdocs/shop/selfpromo.bml
Modified: trunk/htdocs/shop/selfpromo.bml
===================================================================
--- trunk/htdocs/shop/selfpromo.bml	2012-08-02 14:46:35 UTC (rev 12404)
+++ trunk/htdocs/shop/selfpromo.bml	2012-08-02 20:16:43 UTC (rev 12405)
@@ -7,7 +7,7 @@
 
 if ( LJ::Request->did_post ) {
     my $action = LJ::Request->post_param('action');
-    if ( $action eq 'preview' ) {
+    if ( $action && $action eq 'preview' ) {
         my $widget = LJ::Widget::Shop::View::SelfPromo->new;
         $widget->premature_checks;
         return $widget->process_preview_request;

Tags: bml, ljcom, sunnyman, vtroitsky
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments