Permalink
Browse files

MINOR Remove usage of deprecated array access on SQLQuery in SiteTree…

…FolderExtension
  • Loading branch information...
1 parent c6cca21 commit 9f1668505b81363313b06f2cfd3cf9c059d2d44d @chillu chillu committed May 1, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 code/model/SiteTreeFolderExtension.php
@@ -28,7 +28,7 @@ public function getUnusedFilesListFilter() {
$fieldName = $relName .'ID';
$query = singleton($className)->extendedSQL("$fieldName > 0");
$query->distinct = true;
- $query->select = array($fieldName);
+ $query->select(array($fieldName));
$usedFiles = array_merge($usedFiles, $query->execute()->column());
} elseif($joinClass == 'Folder') {

0 comments on commit 9f16685

Please sign in to comment.