that returned id-column was string and some modules were thingking that theres
insert error if return value is string.
Right now all id-colums is always integer so
this should be ok.
if ($rs = $db->Execute("SELECT id FROM $CFG->prefix$table WHERE oid = $oid")) {
// every table needs to have a primary field named 'id' for this to work
if ($rs->RecordCount() == 1) {
- return $rs->fields[0];
+ return (integer) $rs->fields[0]; // id field is integer, but this somehow needed??
}
}
return false;