diff --git a/code/fields/UploadAnythingField.php b/code/fields/UploadAnythingField.php index 5b089ba..8426f27 100644 --- a/code/fields/UploadAnythingField.php +++ b/code/fields/UploadAnythingField.php @@ -606,7 +606,7 @@ protected function GetFileListItem($file, $relation) { */ private function GetFileList() { $html = ""; - if(method_exists('DisplayAnythingFileList', $this->controller)) { + if(method_exists($this->controller,'DisplayAnythingFileList')) { return $this->{$this->controller}->DisplayAnythingFileList(); } else { $relation = $this->DataTypeRelation();