// Append any attached files to the client data $files = (empty($_FILES) ? array() : $_FILES); $param_server_data['ClientData'] = array_merge($param_server_data['ClientData'], $files);
I would imagine that this code would work fine, but the server keeps tossing back the following error:
[01-Jan-2012 01:09:57] PHP Warning: array_merge() [<a href='function.array-merge'>function.array-merge</a>]: Argument #1 is not an array in C:\wamp\www\sun\application\Controllers\AjaxLoader.php on line 41
For reference, "line 41" is equivalent to line 3 in the code snippet.
I'm lost, I've tried a few different paths, but can't seem to nail it.
Ugh, NVM I'm an idiot. Didn't realise the problem was with parameter #1 of the array_merge. -1 self
-2 self for not realising I hadn't posted the topic yet
I think it's time I stopped coding today