Bugs & Features
<?php $searchdata = array("id" => 1, "name" => "", "type" => "foo"); $conditions = array('Question.id' => $searchdata['id'], 'Question.name' => $searchdata['name'], "Question.type" => $searchdata['type']); $conditions = array_filter($conditions); print_r($conditions);
Output for 4.3.0 - 5.6.6
Array ( [Question.id] => 1 [Question.type] => foo )