Fix bug#10750

Fix bug#10750.  Use one array to check both enabled and disabled  queues.