* fix a bug for comment is only image.

This commit is contained in:
wyd621
2013-09-28 05:41:15 +00:00
parent d39e675ea5
commit d3c3bd0c33
+1 -1
View File
@@ -39,7 +39,7 @@ class actionModel extends model
$action->actor = $actor ? $actor : $this->app->user->account;
$action->action = strtolower($actionType);
$action->date = helper::now();
$action->comment = trim(strip_tags($comment)) ? $comment : '';
$action->comment = trim(strip_tags($comment, "<img>")) ? $comment : '';
$action->extra = $extra;
/* Get product and project for this object. */