This commit is contained in:
pengjiangxiu
2017-07-21 11:27:26 +08:00
parent 8b6b41b19a
commit 594cea2f8c
4 changed files with 13 additions and 1 deletions
+10 -1
View File
@@ -113,7 +113,16 @@ class action extends control
*/
public function editComment($actionID)
{
if(trim(strip_tags($this->post->lastComment, '<img>'))) $this->action->updateComment($actionID);
if(trim(strip_tags($this->post->lastComment, '<img>')))
{
$this->action->updateComment($actionID);
}
else
{
dao::$errors['submit'][] = $this->lang->action->historyEdit;
$this->send(array('result' => 'fail', 'message' => dao::getError()));
}
die(js::locate($this->server->http_referer, 'parent'));
}
}