Form->redirect: nur dann im Flash was speichern, wenn Nachricht vorhanden
authorMoritz Bunkus <m.bunkus@linet-services.de>
Tue, 24 Jan 2017 16:30:42 +0000 (17:30 +0100)
committerMoritz Bunkus <m.bunkus@linet-services.de>
Tue, 24 Jan 2017 16:40:55 +0000 (17:40 +0100)
SL/Form.pm

index 3407a20..c9d5932 100644 (file)
@@ -733,7 +733,7 @@ sub redirect {
     $self->info($msg);
 
   } else {
-    SL::Helper::Flash::flash_later('info', $msg);
+    SL::Helper::Flash::flash_later('info', $msg) if $msg;
     $self->_store_redirect_info_in_session;
     print $::form->redirect_header($self->{callback});
   }