浏览代码

prevent notice on non-html attachment viewing

Thijs Kinkhorst 19 年之前
父节点
当前提交
99251fb6ff
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      src/view_text.php

+ 1 - 0
src/view_text.php

@@ -72,6 +72,7 @@ if ($type1 == 'html' || (isset($override_type1) &&  $override_type1 == 'html'))
         $body = charset_decode($charset,$body,false,true);
     }
 } else {
+    $ishtml = FALSE;
     translateText($body, $wrap_at, $charset);
 }