zendframework/zf2 — pull request #2954 by gag237 (2012-11-13 11:45:11+00:00)
Title: Fix validate data contains arrays as values

This patch does not solve the problem at all, I think this code should not be here.

(is_array($this->data[$name])
&& isset($this->data[$name]['error'])
&& $this->data[$name]['error'] === UPLOAD_ERR_NO_FILE
)
|| (is_array($this->data[$name])
&& count($this->data[$name]) === 1
&& is_array($this->data[$name][0])
&& isset($this->data[$name][0]['error'])
&& $this->data[$name][0]['error'] === UPLOAD_ERR_NO_FILE)