From 6e2358b23208ef7e2119d95b0cea1537d9a863c8 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Wed, 18 Jun 2008 03:36:24 +0000 Subject: - Patch #270045 by drewish, Susurrus: clean up return values. --- modules/comment/comment.module | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'modules/comment') 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; } } -- cgit v1.2.3