I believe this should fix #51.
This commit is contained in:
parent
13456fed63
commit
479c34ca5d
@ -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`) " .
|
||||
|
Loading…
Reference in New Issue
Block a user