Skip to content

Commit

Permalink
MINOR Remove usage of deprecated array access on SQLQuery in SiteTree…
Browse files Browse the repository at this point in the history
…FolderExtension
  • Loading branch information
chillu committed May 1, 2012
1 parent c6cca21 commit 9f16685
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/model/SiteTreeFolderExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -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') {
Expand Down

0 comments on commit 9f16685

Please sign in to comment.