Bug Fix on Meta Description Author Page

This commit is contained in:
Kanti 2014-08-22 07:34:56 +02:00
commit cd0d4cce2f
2 changed files with 3 additions and 5 deletions

View file

@ -28,7 +28,6 @@
<div class="wmd-panel">
<form method="POST">
Title <span class="required">*</span> <br><input type="text" name="title" class="text <?php if (isset($postTitle)) { if (empty($postTitle)) { echo 'error';}} ?>" value="<?php echo $oldtitle?>"/><br><br>
Meta Description (optional)<br><input type="text" class="text" name="description" value="<?php if (isset($postDescription)) { echo $postDescription;} ?>"/><br>
<br>
<div id="wmd-button-bar" class="wmd-button-bar"></div>
<textarea id="wmd-input" class="wmd-input <?php if (isset($postContent)) { if (empty($postContent)) { echo 'error';}} ?>" name="content" cols="20" rows="10"><?php echo $oldcontent ?></textarea><br>

View file

@ -501,9 +501,8 @@ post('/edit/profile', function() {
$user = $_SESSION[config("site.url")]['user'];
$title = from($_REQUEST, 'title');
$content = from($_REQUEST, 'content');
$description = from($_REQUEST, 'description');
if ($proper && !empty($title) && !empty($content)) {
edit_profile($title, $content, $user, $description);
edit_profile($title, $content, $user);
} else {
$message['error'] = '';
if (empty($title)) {