2c2 < index b72852d..af3c309 100644 --- > index b72852d..4e94297 100644 5c5 < @@ -637,3 +637,53 @@ function panelizer_update_7117() { --- > @@ -637,3 +637,57 @@ function panelizer_update_7117() { 22,23c22,27 < + $query = db_query('SELECT DISTINCT entity_type FROM {panelizer_entity}') < + ->condition('entity_type', $sandbox['processed_entity_types'], 'NOT IN'); --- > + $query = db_select('panelizer_entity', 'pe') > + ->distinct() > + ->fields('pe', array('entity_type')); > + if (!empty($sandbox['processed_entity_types'])) { > + $query->condition('entity_type', $sandbox['processed_entity_types'], 'NOT IN'); > + }