fix ambigours ID in Where clause in unUsedFiles function

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@44460 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Normann Lou 2007-11-07 06:35:55 +00:00
parent eeef71981d
commit b10466a0da

View File

@ -746,7 +746,7 @@ JS;
} }
if($where == "") return "(ClassName = 'File' OR ClassName = 'Image')"; if($where == "") return "(ClassName = 'File' OR ClassName = 'Image')";
$where = substr($where,0,strlen($where)-1); $where = substr($where,0,strlen($where)-1);
$where = "ID NOT IN (" . $where . ") AND (ClassName = 'File' OR ClassName = 'Image')"; $where = "`File`.ID NOT IN (" . $where . ") AND (ClassName = 'File' OR ClassName = 'Image')";
return $where; return $where;
} }