summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--includes/admin.inc3
1 files changed, 2 insertions, 1 deletions
diff --git a/includes/admin.inc b/includes/admin.inc
index 08f1740..55adb5b 100644
--- a/includes/admin.inc
+++ b/includes/admin.inc
@@ -843,7 +843,8 @@ function views_ui_break_lock_confirm($form, &$form_state, $view) {
$form = array();
if (empty($view->locked)) {
- return t('There is no lock on view %view to break.', array('%name' => $view->name));
+ $form['#markup'] = t('There is no lock on view %view to break.', array('%name' => $view->name));
+ return $form;
}
$cancel = 'admin/structure/views/view/' . $view->name . '/edit';