diff --git a/bureau/admin/bro_editor.php b/bureau/admin/bro_editor.php index 192cd89c..030b85c4 100644 --- a/bureau/admin/bro_editor.php +++ b/bureau/admin/bro_editor.php @@ -79,11 +79,12 @@ include_once("head.php"); $content=$bro->content($R,$editfile); if (empty($content)) { $failed=true; + $error=_("This file is empty"); } else { echo $content; } ?> -".$err->errstr()."

"; ?> +".$error."

"; ?> " /> " /> diff --git a/bureau/admin/hta_add.php b/bureau/admin/hta_add.php index e440984a..dec62a57 100644 --- a/bureau/admin/hta_add.php +++ b/bureau/admin/hta_add.php @@ -45,9 +45,9 @@ include_once("head.php"); } ?>
- +
- + diff --git a/bureau/class/m_hta.php b/bureau/class/m_hta.php index be5f2503..14773c4f 100644 --- a/bureau/class/m_hta.php +++ b/bureau/class/m_hta.php @@ -244,7 +244,7 @@ class m_hta { } } fseek($file,SEEK_END); - if (substr($t[1],-1)!="\n") { + if ( empty($t[1]) || substr($t[1],-1)!="\n") { fwrite($file,"\n"); } fwrite($file, "$user:"._md5cr($password)."\n");
" maxlength="255" />