Fix mistake - was using echo instead of adding to output string
[squirrelmail.git] / plugins / preview_pane / functions.php
index de9ae3135b72944eb9e1f729ab2e6cc9e7aa736d..8bb06b7db4384196fff8f72802db1b2bbdc1998c 100644 (file)
@@ -148,8 +148,8 @@ function preview_pane_message_list_do()
       // if someone else asks for it, force the message list to reload 
       //
       else if ($pp_refresh_top)
-         echo "      if (typeof(parent.right.pp_refresh) != 'undefined')\n"
-            . "         parent.right.pp_refresh()\n\n";
+         $output.= "      if (typeof(parent.right.pp_refresh) != 'undefined')\n"
+                 . "         parent.right.pp_refresh()\n\n";
 
 
       $output .= "      document.location = '" . $base_uri . "plugins/preview_pane/empty_frame.php'\n"