Index: branches/5.2.x/core/units/helpers/spam_helper.php =================================================================== diff -u -N -r14244 -r14628 --- branches/5.2.x/core/units/helpers/spam_helper.php (.../spam_helper.php) (revision 14244) +++ branches/5.2.x/core/units/helpers/spam_helper.php (.../spam_helper.php) (revision 14628) @@ -1,6 +1,6 @@ ExpirationCache[$this->DataType] = $this->Conn->GetCol($sql, 'ItemResourceId'); } + else { + $key_clause = ''; + } $cache =& $this->ExpirationCache[$this->DataType]; $expires = array_key_exists($this->ResourceId, $cache) ? $cache[$this->ResourceId] : false;