Fix issues

This commit is contained in:
Pierre 2018-04-21 18:58:02 +02:00
parent cf4b75c61a
commit a3b005d184
2 changed files with 2 additions and 2 deletions

View File

@ -188,7 +188,7 @@ class commentsController {
$data["userID"] = $comment->get_userID(); $data["userID"] = $comment->get_userID();
$data["postID"] = $comment->get_postID(); $data["postID"] = $comment->get_postID();
$data["time_sent"] = $comment->get_time_sent(); $data["time_sent"] = $comment->get_time_sent();
$data["content"] = $comment->get_content(); $data["content"] = $comment->has_content() ? $comment->get_content() : "";
$data["img_path"] = $comment->has_img_path() ? $comment->get_img_path() : null; $data["img_path"] = $comment->has_img_path() ? $comment->get_img_path() : null;
$data["img_url"] = $comment->has_img_url() ? $comment->get_img_url() : null; $data["img_url"] = $comment->has_img_url() ? $comment->get_img_url() : null;

View File

@ -290,7 +290,7 @@ class Comments {
//Check for image //Check for image
if($data["image_commentaire"] != ""){ if($data["image_commentaire"] != ""){
$comment->set_img_path(str_replace("file:", "", $data["image_commentaire"])); $comment->set_img_path(str_replace("file:", "", $data["image_commentaire"]));
$info->set_img_url(path_user_data($info->get_img_path(), false)); $comment->set_img_url(path_user_data($comment->get_img_path(), false));
} }
if($load_likes){ if($load_likes){