From: Adrian Lang Date: Sat, 7 Mar 2009 22:04:30 +0000 (+0100) Subject: Fix bug in dupe checking on notice post when there is no notice in cache. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=bea3fca1899dddda8d1c52c16a761dd23c9ce8b8;p=quix0rs-gnu-social.git Fix bug in dupe checking on notice post when there is no notice in cache. --- diff --git a/classes/Notice.php b/classes/Notice.php index eac90ce95b..ac4db944f2 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) {