Skip to content
Snippets Groups Projects
Commit fa0152c6 authored by Tim Steiner's avatar Tim Steiner
Browse files

Fix a bug that happened when you uploaded an empty file.

parent 25b19544
No related branches found
No related tags found
No related merge requests found
......@@ -707,7 +707,7 @@ class Requests_RequestModel extends Unl_Model
public function __sleep()
{
foreach ($this->_data['files'] as &$file) {
if (!$file['data']) {
if (array_key_exists('hash', $file) && !$file['data']) {
continue;
}
$file['hash'] = self::_saveFileToDisk($file['data']);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment