Clean up rawlist.php and fix non-array request