Fixed insert_id problem that randomly surfaced.
This commit is contained in:
		| @@ -184,8 +184,12 @@ sub add_kwote { | ||||
| 	# execute | ||||
| 	$sth->execute() or return undef; | ||||
|  | ||||
| 	# get the id | ||||
| 	my $insert_id = ($dbh->{'mysql_insertid'}) ?  | ||||
| 		$dbh->{'mysql_insertid'} : $sth->insert_id; | ||||
|  | ||||
| 	# return the id | ||||
| 	return $sth->{insertid}; | ||||
| 	return $insert_id; | ||||
| } | ||||
|  | ||||
| ## | ||||
|   | ||||
		Reference in New Issue
	
	Block a user