Commit 949f04aa authored by TravisCarden's avatar TravisCarden

By TravisCarden: Fixed undefined index warning the first time a checklist is saved.

parent 4a418025
......@@ -147,7 +147,7 @@ class ChecklistapiChecklist {
// Loop through items.
if (is_array($group)) {
foreach ($group as $item_key => $item) {
$old_item = $this->savedProgress[$group_key][$item_key];
$old_item = (!empty($this->savedProgress[$group_key][$item_key])) ? $this->savedProgress[$group_key][$item_key] : 0;
$new_item = &$values[$group_key][$item_key];
// Item is checked.
if ($item == 1) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment