Skip to content

Commit

Permalink
Typo in variable name results in PHP Notice and unneeded file deletio…
Browse files Browse the repository at this point in the history
…n checks on ezbinaryfile store/publish. (ezsystems#1347)
  • Loading branch information
raindancer authored and andrerom committed Jan 29, 2018
1 parent b39ab37 commit 29941aa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kernel/classes/datatypes/ezbinaryfile/ezbinaryfiletype.php
Expand Up @@ -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 );
}
Expand Down

0 comments on commit 29941aa

Please sign in to comment.