T

Code change for associateAttachmentsWithContent

  • Thread starter Thread starter tenants
  • Start date Start date
T

tenants

Guest

A minor change, I've seen this method is a bit unsafe to extend/override, it's easy to pass in an empty $tempHash
Doing so will update every attachment in the database (that's not going to be easy to reverse)

can we add a check on the tempHash on this method, something like:

Code:
if(!$tempHash){throw new \InvalidArgumentException("No hash provided for attachment");}

I cant see a reason why you would ever need to pass in an empty $tempHash
Other than some silly addon developer making a...

Read more

Continue reading...
 
Similar threads Most view View more
Back
Top Bottom