Topic: I can't delete comments

Cutenews 1.5 doesn't allow me to delete comments. This is the error message: "Comments can't be blank". But comment isn't blank. Why?

Re: I can't delete comments

In ./inc/editcomments.php insead "if (empty($comment)) die(lang("Comment can not be blank"));" write "if (empty($comment) && isset($comment)) die(lang("Comment can not be blank"));" and it fix this problem.

Re: I can't delete comments

In ./inc/editcomments.php insead "if (empty($comment)) die(lang("Comment can not be blank"));" write "if (empty($comment) && isset($comment)) die(lang("Comment can not be blank"));" and it fix this problem.


Sorry, but I don't undestand what I have to do. What means "insead"? What I have to modify in editcomments.php?

Re: I can't delete comments

Sorry, but I don't undestand what I have to do. What means "insead"? What I have to modify in editcomments.php?


This has been fixed in a new version of cutenews https://github.com/CuteNews/cute-news-repo/...872369f057831c9. Just download latest version.

Replace in ./inc/editcomments.php

if (empty($comment)) die(lang("Comment can not be blank"));

so this code

if (empty($comment) && isset($comment)) die(lang("Comment can not be blank"));

Re: I can't delete comments

This has been fixed in a new version of cutenews https://github.com/CuteNews/cute-news-repo/...872369f057831c9. Just download latest version.

Replace in ./inc/editcomments.php

if (empty($comment)) die(lang("Comment can not be blank"));

so this code

if (empty($comment) && isset($comment)) die(lang("Comment can not be blank"));

thank you for reply http://cutephp.com/forum/style_emoticons/default/smile.gif