Explicitly return an integer

This commit is contained in:
moodler
2005-02-18 16:25:14 +00:00
parent 48a6a7c2c9
commit 4a7ba9ab87
+1 -1
View File
@@ -1112,7 +1112,7 @@ function insert_record($table, $dataobject, $returnid=true, $primarykey='id') {
return false;
default:
return $db->Insert_ID(); // Should work on most databases, but not all!
return (int)$db->Insert_ID(); // Should work on most databases, but not all!
}
}