From cbb4fa5fae1304913db457f8f8980803f4c4b15a Mon Sep 17 00:00:00 2001 From: demeritcowboy Date: Mon, 8 Aug 2022 22:53:56 -0400 Subject: [PATCH] bring in line with #24176 --- CRM/Utils/System/DrupalBase.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/CRM/Utils/System/DrupalBase.php b/CRM/Utils/System/DrupalBase.php index df1d1fbcaed0..f5b916bf09fc 100644 --- a/CRM/Utils/System/DrupalBase.php +++ b/CRM/Utils/System/DrupalBase.php @@ -171,8 +171,8 @@ public function url( $separator = '&'; if (!$config->cleanURL) { - if (isset($path)) { - if (isset($query)) { + if ($path !== NULL && $path !== '' && $path !== FALSE) { + if ($query !== NULL && $query !== '' && $query !== FALSE) { return $base . $script . '?q=' . $path . $separator . $query . $fragment; } else { @@ -180,7 +180,7 @@ public function url( } } else { - if (isset($query)) { + if ($query !== NULL && $query !== '' && $query !== FALSE) { return $base . $script . '?' . $query . $fragment; } else { @@ -189,8 +189,8 @@ public function url( } } else { - if (isset($path)) { - if (isset($query)) { + if ($path !== NULL && $path !== '' && $path !== FALSE) { + if ($query !== NULL && $query !== '' && $query !== FALSE) { return $base . $path . '?' . $query . $fragment; } else { @@ -198,7 +198,7 @@ public function url( } } else { - if (isset($query)) { + if ($query !== NULL && $query !== '' && $query !== FALSE) { return $base . $script . '?' . $query . $fragment; } else {