From 29941aa88679a0c5eb7df0dfe8866243db092dc7 Mon Sep 17 00:00:00 2001 From: raindancer Date: Mon, 29 Jan 2018 12:59:45 +0100 Subject: [PATCH] Typo in variable name results in PHP Notice and unneeded file deletion checks on ezbinaryfile store/publish. (#1347) --- kernel/classes/datatypes/ezbinaryfile/ezbinaryfiletype.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/classes/datatypes/ezbinaryfile/ezbinaryfiletype.php b/kernel/classes/datatypes/ezbinaryfile/ezbinaryfiletype.php index c1ba06b5e17..c57ad2084bb 100644 --- a/kernel/classes/datatypes/ezbinaryfile/ezbinaryfiletype.php +++ b/kernel/classes/datatypes/ezbinaryfile/ezbinaryfiletype.php @@ -332,8 +332,8 @@ function fetchObjectAttributeHTTPInput( $http, $base, $contentObjectAttribute ) else { // if storing a different file for the same version, see if the existing file can be removed. - $newfilename = basename( $httpBinaryFile->attribute( "filename" ) ); - if ( $newFilename != $binary->Filename ) + $newFileName = basename( $httpBinaryFile->attribute( "filename" ) ); + if ( $newFileName != $binary->Filename ) { $this->deleteStoredObjectAttribute( $contentObjectAttribute, $version ); }