summaryrefslogtreecommitdiff
path: root/modules/comment/comment.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2008-11-01 19:51:06 +0000
committerDries Buytaert <dries@buytaert.net>2008-11-01 19:51:06 +0000
commit424250196a65b48919de50b2a3327f67c076e0d3 (patch)
tree83b9cae1c024bd391d15f8faeee7595985fca4d7 /modules/comment/comment.module
parent4a6243aff27d5f26189e0e9eff2039fe0cdbb754 (diff)
downloadbrdo-424250196a65b48919de50b2a3327f67c076e0d3.tar.gz
brdo-424250196a65b48919de50b2a3327f67c076e0d3.tar.bz2
- Patch #279516 by c960657: removed many PHP4-isms. Great patch.
Diffstat (limited to 'modules/comment/comment.module')
-rw-r--r--modules/comment/comment.module3
1 files changed, 1 insertions, 2 deletions
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.'));
}
}