From 97b5b0f4162cd748f2c840939edf07dbfb083d67 Mon Sep 17 00:00:00 2001 From: Christian Haas Date: Tue, 29 Oct 2013 15:17:47 +0100 Subject: [PATCH] Fix for ZendGuard 5.3 problem Not shure what the code is meant to do, but the syntax of method_exists is method_exists ( mixed $object , string $method_name ). Anyhow there is not methode "DisplayAnythingFileList" but it fixes an Issue with ZendGuard 5.3 enable on a Shared Host. --- code/fields/UploadAnythingField.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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();