summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBojan Zivanovic2011-07-20 15:10:13 (GMT)
committer Bojan Zivanovic2011-07-20 15:10:13 (GMT)
commit4eefa993ae0799326ccd523e1bcddb67fb0f9b86 (patch)
tree3fbd7a0904e5ad293d10f603e907f73614d8d229
parent96d749ae3db6fc1f266b6f775e98f98e83183d22 (diff)
Issue #1224012 - PHP error regarding array_filter displayed when using drush vbo-list
-rw-r--r--views_bulk_operations.drush.inc6
1 files changed, 2 insertions, 4 deletions
diff --git a/views_bulk_operations.drush.inc b/views_bulk_operations.drush.inc
index 0d11af9..e9dca04 100644
--- a/views_bulk_operations.drush.inc
+++ b/views_bulk_operations.drush.inc
@@ -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(