From c5d7b23e4a44c9b4ec9c70a3f3438c69b54bcf07 Mon Sep 17 00:00:00 2001 From: Kevin Yeh Date: Thu, 10 Apr 2014 08:39:38 -0400 Subject: [PATCH] Remove extraneous & for call by reference in document upload plugin. Call by reference should be handled in the function signature, not a runtime. --- controllers/C_Document.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controllers/C_Document.class.php b/controllers/C_Document.class.php index de5e6a4cd37..c0f29fc4ce6 100644 --- a/controllers/C_Document.class.php +++ b/controllers/C_Document.class.php @@ -161,7 +161,7 @@ function upload_action_process() { } $upload_plugin_pp = 'documentUploadPostProcess'; if (function_exists($upload_plugin_pp)) { - $tmp = call_user_func($upload_plugin_pp, $value, &$d); + $tmp = call_user_func($upload_plugin_pp, $value, $d); if ($tmp) { $error = $tmp; }