Bug editor

This commit is contained in:
Alan Garcia 2012-08-29 07:25:33 +00:00
parent 052124b6c7
commit bcbc8e05bb
1 changed files with 5 additions and 2 deletions

View File

@ -77,8 +77,11 @@ include_once("head.php");
<textarea class="int" style="font-family: <?php echo $p["editor_font"]; ?>; font-size: <?php echo $p["editor_size"]; ?>; width: 90%; height: 400px;" name="texte"><?php
$failed=false;
$content=$bro->content($R,$editfile);
if (empty($content)) $failed=true;
if (empty($content)) {
$failed=true;
} else {
echo $content;
}
?></textarea>
<?php if ($failed) echo "<p class=\"error\">".$err->errstr()."</p>"; ?>
<input type="hidden" name="editfile" value="<?php echo str_replace("\"","&quot;",$editfile); ?>" />