Merged revisions 47614 via svnmerge from

svn://svn.silverstripe.com/silverstripe/modules/sapphire/branches/2.2.0-mesq

........
  r47614 | ischommer | 2008-01-04 19:15:18 +1300 (Fri, 04 Jan 2008) | 1 line
  
  stricter checking in loadUploaded()
........


git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@52200 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Ingo Schommer 2008-04-06 04:09:02 +00:00
parent 9e98f127f2
commit 72f6f06f44

View File

@ -116,7 +116,7 @@ class Image extends File {
* @return boolean Returns true if successful * @return boolean Returns true if successful
*/ */
function loadUploaded($tmpFile) { function loadUploaded($tmpFile) {
if(parent::loadUploaded($tmpFile)) { if(parent::loadUploaded($tmpFile) === true) {
$this->deleteFormattedImages(); $this->deleteFormattedImages();
return true; return true;
} }