Fix warnings generated by embeds.

        Patch by kareila. 

diffs (12 lines):

diff -r 18418924badc -r 20d68b781234 cgi-bin/LJ/EmbedModule.pm
--- a/cgi-bin/LJ/EmbedModule.pm Thu Dec 16 23:09:15 2010 +0800
+++ b/cgi-bin/LJ/EmbedModule.pm Thu Dec 16 23:20:44 2010 +0800
@@ -236,7 +236,7 @@ sub module_iframe_tag {
 
     my $journalid = $u->userid;
     $moduleid += 0;
-    my $preview = $opts{preview};
+    my $preview = defined $opts{preview} ? $opts{preview} : '';
 
     # parse the contents of the module and try to come up with a guess at the 
width and height of the content
     my $content = $class->module_content( moduleid => $moduleid, journalid => 
$journalid, preview => $preview );
_______________________________________________
dw-changelog mailing list
[email protected]
http://lists.dwscoalition.org/mailman/listinfo/dw-changelog

Reply via email to