summaryrefslogtreecommitdiff
path: root/modules/system/system.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2006-12-26 10:20:37 +0000
committerDries Buytaert <dries@buytaert.net>2006-12-26 10:20:37 +0000
commitd1b13b5400292e445a8cd13e55f482420ba315ef (patch)
treeb40edaf2f9b869706fbc54e36014ccebc7d84a25 /modules/system/system.module
parentca11696598dfeb350df9fe90861b8fffa45c002e (diff)
downloadbrdo-d1b13b5400292e445a8cd13e55f482420ba315ef.tar.gz
brdo-d1b13b5400292e445a8cd13e55f482420ba315ef.tar.bz2
- Patch #100747 by ankur: confirm_form() does not allow empty description strings.
Diffstat (limited to 'modules/system/system.module')
-rw-r--r--modules/system/system.module2
1 files changed, 1 insertions, 1 deletions
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;