From d1b13b5400292e445a8cd13e55f482420ba315ef Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Tue, 26 Dec 2006 10:20:37 +0000 Subject: - Patch #100747 by ankur: confirm_form() does not allow empty description strings. --- modules/system/system.module | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/system/system.module') diff --git a/modules/system/system.module b/modules/system/system.module index 0963745d4..27e406934 100644 --- a/modules/system/system.module +++ b/modules/system/system.module @@ -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; -- cgit v1.2.3