From fbd6e35872ee08d73aa93ff601980524b37c14b4 Mon Sep 17 00:00:00 2001 From: Ben Rowe Date: Mon, 2 Apr 2018 17:33:16 +1000 Subject: [PATCH] Fix state check for checklist items --- lib/Trello/Model/Checklist.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Trello/Model/Checklist.php b/lib/Trello/Model/Checklist.php index dce17ec..ea3c971 100644 --- a/lib/Trello/Model/Checklist.php +++ b/lib/Trello/Model/Checklist.php @@ -242,7 +242,7 @@ public function isItemChecked($nameOrId) protected function postRefresh() { foreach ($this->data['checkItems'] as $key => $item) { - $this->data['checkItems'][$key]['state'] = in_array($item['state'], array(true, 'complete', 'true')); + $this->data['checkItems'][$key]['state'] = in_array($item['state'], array(true, 'complete', 'true'), true); } }