1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-21 21:57:34 +02:00

Closes Issue #319

This commit is contained in:
SecretR
2013-05-24 22:40:10 +03:00
parent f7f3dd65f3
commit 06a2ea8fa0
9 changed files with 18 additions and 18 deletions

View File

@@ -529,7 +529,7 @@ class comment
{
return;
}
return e107::getDb()->update("comments","comment_blocked=1 WHERE comment_id = ".intval($id)." LIMIT 1");
return e107::getDb()->update("comments","comment_blocked=1 WHERE comment_id = ".intval($id)."");
}
function approveComment($id) // appropve a single comment by comment id.
@@ -539,7 +539,7 @@ class comment
return;
}
return e107::getDb()->update("comments","comment_blocked=0 WHERE comment_id = ".intval($id)." LIMIT 1");
return e107::getDb()->update("comments","comment_blocked=0 WHERE comment_id = ".intval($id)."");
}
@@ -547,7 +547,7 @@ class comment
{
$tp = e107::getParser();
if(!e107::getDb()->update("comments","comment_comment=\"".$tp->toDB($comment)."\" WHERE comment_id = ".intval($id)." LIMIT 1"))
if(!e107::getDb()->update("comments","comment_comment=\"".$tp->toDB($comment)."\" WHERE comment_id = ".intval($id).""))
{
return "Update Failed"; // trigger ajax error message.
}