I believe this should fix #51.

This commit is contained in:
Ryan Prather 2018-10-13 20:15:37 -04:00
parent 13456fed63
commit 479c34ca5d

View File

@ -11037,7 +11037,11 @@ class db
]);
$tgts = $this->help->execute();
if (is_array($tgts) && count($tgts)) {
if(is_array($tgts) && count($tgts) && isset($tgts['id'])) {
$tgts = [0 => $tgts];
}
if (is_array($tgts) && count($tgts) && isset($tgts[0])) {
foreach ($tgts as $tgt) {
$this->help->query_type = db_helper::INSERT;
$this->help->sql = "INSERT IGNORE INTO `target_checklist` (`tgt_id`,`chk_id`) " .