Skip to content

Commit

Permalink
fixed incorrect error processing of the last uploaded file. closes #894
Browse files Browse the repository at this point in the history
  • Loading branch information
WanWizard committed Apr 27, 2012
1 parent 6449cf3 commit 36b2c67
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions classes/upload.php
Expand Up @@ -418,12 +418,12 @@ public static function process($config = array())
}
}
}
}

// and add the message texts
foreach (static::$files[$key]['errors'] as $e => $error)
{
static::$files[$key]['errors'][$e]['message'] = \Lang::get('upload.error_'.$error['error']);
}
// and add the message texts
foreach (static::$files[$key]['errors'] as $e => $error)
{
static::$files[$key]['errors'][$e]['message'] = \Lang::get('upload.error_'.$error['error']);
}

// determine the validate status of at least one uploaded file
Expand Down Expand Up @@ -709,12 +709,12 @@ public static function save()
}
}
}
}

// and add the message texts
foreach (static::$files[$key]['errors'] as $e => $error)
{
empty(static::$files[$key]['errors'][$e]['message']) and static::$files[$key]['errors'][$e]['message'] = \Lang::get('upload.error_'.$error['error']);
}
// and add the message texts
foreach (static::$files[$key]['errors'] as $e => $error)
{
empty(static::$files[$key]['errors'][$e]['message']) and static::$files[$key]['errors'][$e]['message'] = \Lang::get('upload.error_'.$error['error']);
}

// reset the umask
Expand Down

0 comments on commit 36b2c67

Please sign in to comment.