filterColumn = 0; $sortCriteria->ascending = true; error_log("==========================================================================="); $assignedDrives = get_all_drives_by_library($user, $libGUID, $sortCriteria,(int)0,(int)MEDIA_TYPE_ANY); error_log("get_all_drives_by_library returned:\n". print_r( $assignedDrives, true ) ); $commandPathDrives = get_command_path_drives($user, $libGUID); error_log("get_command_path_drives returned:\n". print_r( $commandPathDrives, true ) ); // TODO: do we need to get by media type? // For now passing in LTO_1 (1) as the media type will get all drives // that support LTO1 drives. $unassignedDrives = get_available_drives_by_type($user, $sortCriteria, 1); error_log("get_available_drives_by_type returned:\n". print_r( $unassignedDrives, true ) ); $drives = array_merge($assignedDrives, $unassignedDrives); error_log("All drives merged togather are:\n". print_r( $drives, true ) ); error_log("==========================================================================="); } ?> Drive Report List name == "" ? "" : "checked"; $disabled = ""; foreach ($commandPathDrives as $cpd) { if ($drive->guid == $cpd) { $disabled = "disabled"; break; } } ?>