Commit d1b13b54 authored by Dries's avatar Dries
Browse files

- Patch #100747 by ankur: confirm_form() does not allow empty description strings.

parent ca116965
......@@ -2137,7 +2137,7 @@ function system_node_type($op, $info) {
* The form.
*/
function confirm_form($form, $question, $path, $description = NULL, $yes = NULL, $no = NULL, $name = 'confirm') {
$description = ($description) ? $description : t('This action cannot be undone.');
$description = isset($description) ? $description : t('This action cannot be undone.');
// Prepare cancel link
$query = $fragment = NULL;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment