update.php fix and Merge array funct.