From 424250196a65b48919de50b2a3327f67c076e0d3 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sat, 1 Nov 2008 19:51:06 +0000 Subject: - Patch #279516 by c960657: removed many PHP4-isms. Great patch. --- modules/comment/comment.module | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'modules/comment/comment.module') diff --git a/modules/comment/comment.module b/modules/comment/comment.module index 341767aa3..7644e0f9e 100644 --- a/modules/comment/comment.module +++ b/modules/comment/comment.module @@ -1134,8 +1134,7 @@ function comment_validate($edit) { comment_invoke_comment($edit, 'validate'); if (isset($edit['date'])) { - // As of PHP 5.1.0, strtotime returns FALSE upon failure instead of -1. - if (strtotime($edit['date']) <= 0) { + if (strtotime($edit['date']) === FALSE) { form_set_error('date', t('You have to specify a valid date.')); } } -- cgit v1.2.3