CC-3569: Update total track metric to only report tracks that exist

- fixed
This commit is contained in:
James 2012-04-03 15:53:55 -04:00
parent 6943120fc6
commit 4cb64b0eb1

View file

@ -835,7 +835,7 @@ Logging::log("getting media! - 2");
public static function getFileCount()
{
global $CC_CONFIG, $CC_DBC;
$sql = "SELECT count(*) as cnt FROM ".$CC_CONFIG["filesTable"];
$sql = "SELECT count(*) as cnt FROM ".$CC_CONFIG["filesTable"]." WHERE file_exists";
return $CC_DBC->GetOne($sql);
}