php5.6/php7 compatibility + memleak fix – TM-FORUM
The modernizer plugin messed up the wrap to mysql_insert_id here. Look for lines 100-102 in modernizer.inc.php and change them accordingly:
// ...
if (!function_exists('mysql_insert_id')) {
function mysql_insert_id($res){
global $_db;
return mysqli_insert_id($_db->conn);
}
}
// ...
to
// ...
if (!function_exists('mysql_insert_id')) {
function mysql_insert_id($link = null){
global $_db;
return mysqli_insert_id(is_null($link) ? $_db->conn : $link);
}
}
// ...