summaryrefslogtreecommitdiff
path: root/modules/comment
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2008-06-18 03:36:24 +0000
committerDries Buytaert <dries@buytaert.net>2008-06-18 03:36:24 +0000
commit6e2358b23208ef7e2119d95b0cea1537d9a863c8 (patch)
treeb8bf1811f88615c35d40c540c3070269cc9ed1e6 /modules/comment
parent0889c01d21ded9b07b117868d12b1032d7c9317c (diff)
downloadbrdo-6e2358b23208ef7e2119d95b0cea1537d9a863c8.tar.gz
brdo-6e2358b23208ef7e2119d95b0cea1537d9a863c8.tar.bz2
- Patch #270045 by drewish, Susurrus: clean up return values.
Diffstat (limited to 'modules/comment')
-rw-r--r--modules/comment/comment.module3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/comment/comment.module b/modules/comment/comment.module
index 635f64192..ce84a6e34 100644
--- a/modules/comment/comment.module
+++ b/modules/comment/comment.module
@@ -1129,6 +1129,7 @@ function comment_num_replies($pid) {
* @param $timestamp
* Time to count from (defaults to time of last user access
* to node).
+ * @return The result or FALSE on error.
*/
function comment_num_new($nid, $timestamp = 0) {
global $user;
@@ -1146,7 +1147,7 @@ function comment_num_new($nid, $timestamp = 0) {
return $result;
}
else {
- return 0;
+ return FALSE;
}
}