{"action":"created","issue":{"url":"https://api.github.com/repos/ikkez/f3-cortex/issues/6","labels_url":"https://api.github.com/repos/ikkez/f3-cortex/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/ikkez/f3-cortex/issues/6/comments","events_url":"https://api.github.com/repos/ikkez/f3-cortex/issues/6/events","html_url":"https://github.com/ikkez/f3-cortex/issues/6","id":107491274,"number":6,"title":"JIG: Filter arguments with NULL value disappear","user":{"login":"intermike","id":10540148,"avatar_url":"https://avatars.githubusercontent.com/u/10540148?v=3","gravatar_id":"","url":"https://api.github.com/users/intermike","html_url":"https://github.com/intermike","followers_url":"https://api.github.com/users/intermike/followers","following_url":"https://api.github.com/users/intermike/following{/other_user}","gists_url":"https://api.github.com/users/intermike/gists{/gist_id}","starred_url":"https://api.github.com/users/intermike/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/intermike/subscriptions","organizations_url":"https://api.github.com/users/intermike/orgs","repos_url":"https://api.github.com/users/intermike/repos","events_url":"https://api.github.com/users/intermike/events{/privacy}","received_events_url":"https://api.github.com/users/intermike/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-09-21T11:23:32Z","updated_at":"2015-09-21T13:56:48Z","closed_at":null,"body":"Greetings.\r\n\r\nI've caught a bug with filter like\r\n```php\r\n$model->find(array('published_date < ? or published_date = ?', '2015-09-01', null))\r\n```\r\n\r\n`_jig_parse_filter` function chops all null values in filter arguments and in result:\r\n```php\r\narray('2015-09-01')\r\n```\r\nso server gives an error.\r\n\r\nI don't know would this filter work with SQL, but cutting filter arguments list is not good even there is NULL.\r\n\r\nProposition: remove `if (isset($val))` in `_jig_parse_filter` function where:\r\n```php\r\nif (isset($val))\r\n    $ncond[] = $val;\r\n```\r\nSo it will be \r\n```php\r\n$ncond[] = $val;\r\n```\r\nThanks.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/ikkez/f3-cortex/issues/comments/141987630","html_url":"https://github.com/ikkez/f3-cortex/issues/6#issuecomment-141987630","issue_url":"https://api.github.com/repos/ikkez/f3-cortex/issues/6","id":141987630,"user":{"login":"ikkez","id":1177647,"avatar_url":"https://avatars.githubusercontent.com/u/1177647?v=3","gravatar_id":"","url":"https://api.github.com/users/ikkez","html_url":"https://github.com/ikkez","followers_url":"https://api.github.com/users/ikkez/followers","following_url":"https://api.github.com/users/ikkez/following{/other_user}","gists_url":"https://api.github.com/users/ikkez/gists{/gist_id}","starred_url":"https://api.github.com/users/ikkez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ikkez/subscriptions","organizations_url":"https://api.github.com/users/ikkez/orgs","repos_url":"https://api.github.com/users/ikkez/repos","events_url":"https://api.github.com/users/ikkez/events{/privacy}","received_events_url":"https://api.github.com/users/ikkez/received_events","type":"User","site_admin":false},"created_at":"2015-09-21T13:56:48Z","updated_at":"2015-09-21T13:56:48Z","body":"hey mike. what about a simple switch to `array_key_exists` instead of `isset`? wouldn't that fit too?"}}