Issue #1224012 - PHP error regarding array_filter displayed when using drush vbo...
authorBojan Zivanovic
Wed, 20 Jul 2011 15:10:13 +0000 (17:10 +0200)
committerBojan Zivanovic
Wed, 20 Jul 2011 15:10:13 +0000 (17:10 +0200)
views_bulk_operations.drush.inc

index 0d11af9..e9dca04 100644 (file)
@@ -56,10 +56,8 @@ function views_bulk_operations_drush_list() {
     $vbo = _views_bulk_operations_get_field($view);
     if ($vbo) {
       $operations = array();
-      foreach (array_filter($vbo->options['vbo']['selected_operations']) as $operation) {
-        if (isset($vbo->all_operations[$operation])) {
-          $operations[] = $vbo->all_operations[$operation]['label'] .' ('. $operation .')';
-        }
+      foreach ($vbo->get_selected_operations() as $operation => $label) {
+        $operations[] = $label .' ('. $operation .')';
       }
       $operations[] = "---------------";
       $rows[] = array(