mirror of
https://github.com/cp6/my-idlers.git
synced 2025-04-19 17:48:36 +00:00
Fixed last return id for new provider and location insert
Fixed last return id for new provider and location insert
This commit is contained in:
parent
fdc31bc2fd
commit
8a6b1ea54e
1 changed files with 2 additions and 2 deletions
|
@ -1819,7 +1819,7 @@ class idlers extends helperFunctions
|
|||
} else {//NO
|
||||
$insert = $this->dbConnect()->prepare('INSERT INTO `locations` (`name`) VALUES (?);');
|
||||
$insert->execute([$provider]);
|
||||
return $db->lastInsertId();
|
||||
return $this->dbConnect()->lastInsertId();
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1833,7 +1833,7 @@ class idlers extends helperFunctions
|
|||
} else {//NO
|
||||
$insert = $this->dbConnect()->prepare('INSERT INTO `providers` (`name`) VALUES (?);');
|
||||
$insert->execute([$provider]);
|
||||
return $db->lastInsertId();
|
||||
return $this->dbConnect()->lastInsertId();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue