I've been getting this error for a really long time but never thought anything of it since there's never any problems and I don't use downloads.

Code:
[11-Aug-2010 13:37:25] PHP Fatal error:  Call to a member function RecordCount() on a non-object in /includes/templates/template_default/templates/tpl_modules_downloads.php on line 19
That line looks like

Code:
<?php
// download is available
  if ($downloads->RecordCount() > 0) {
?>
I compared it to a fresh file and it's exactly the same.
How do I fix this?