summaryrefslogtreecommitdiff
path: root/classes/Notice.php
diff options
context:
space:
mode:
authorAdrian Lang <mail@adrianlang.de>2009-03-07 23:04:30 +0100
committerEvan Prodromou <evan@controlyourself.ca>2009-03-07 17:45:29 -0800
commitbea3fca1899dddda8d1c52c16a761dd23c9ce8b8 (patch)
tree0835513c9332d9083f42fd84b620486c168583d0 /classes/Notice.php
parent7d7d78b7f7a5065a866468c2e8b5bd536f56611a (diff)
Fix bug in dupe checking on notice post when there is no notice in cache.
Diffstat (limited to 'classes/Notice.php')
-rw-r--r--classes/Notice.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/classes/Notice.php b/classes/Notice.php
index eac90ce95..ac4db944f 100644
--- a/classes/Notice.php
+++ b/classes/Notice.php
@@ -234,7 +234,7 @@ class Notice extends Memcached_DataObject
$notice->content = $content;
$notice->whereAdd('now() - created < ' . common_config('notice', 'dupelimit'));
$cnt = $notice->count();
- return ($cnt > 0);
+ return ($cnt == 0);
}
static function checkEditThrottle($profile_id) {