Skip to content

Commit

Permalink
Use the + operator instead of array_merge to properly handle numeric …
Browse files Browse the repository at this point in the history
…keys. Fixes blueimp#2589
  • Loading branch information
blueimp committed Sep 13, 2013
1 parent b4cc566 commit 6ba55a8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions server/php/UploadHandler.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
/*
* jQuery File Upload Plugin PHP Class 6.9.0
* jQuery File Upload Plugin PHP Class 6.9.1
* https://github.com/blueimp/jQuery-File-Upload
*
* Copyright 2010, Sebastian Tschan
Expand Down Expand Up @@ -125,10 +125,10 @@ function __construct($options = null, $initialize = true, $error_messages = null
)
);
if ($options) {
$this->options = array_merge($this->options, $options);
$this->options = $options + $this->options;
}
if ($error_messages) {
$this->error_messages = array_merge($this->error_messages, $error_messages);
$this->error_messages = $error_messages + $this->error_messages;
}
if ($initialize) {
$this->initialize();
Expand Down

0 comments on commit 6ba55a8

Please sign in to comment.