TimLangley/Zend_Qwerly — Issue #1: 1-element batch improperly handled
Author: p-n-p
Created: 2011-10-20 07:22:51+00:00
State: open

If $data passed to Qwerly_API::_lookUpBy is an array with exactly one element, it is treated as batch, but Qwerly API returns data for one profile only, which makes the processing fail.
I suggest the following change:
if (is_array($data)) {
if (count($data) > 1) { // added
$batch = true;
}
$data = implode(',', $data);
}