From: demeritcowboy Date: Tue, 9 Aug 2022 02:53:56 +0000 (-0400) Subject: bring in line with #24176 X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=cbb4fa5fae1304913db457f8f8980803f4c4b15a;p=civicrm-core.git bring in line with #24176 --- diff --git a/CRM/Utils/System/DrupalBase.php b/CRM/Utils/System/DrupalBase.php index df1d1fbcae..f5b916bf09 100644 --- a/CRM/Utils/System/DrupalBase.php +++ b/CRM/Utils/System/DrupalBase.php @@ -171,8 +171,8 @@ abstract class CRM_Utils_System_DrupalBase extends CRM_Utils_System_Base { $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 @@ abstract class CRM_Utils_System_DrupalBase extends CRM_Utils_System_Base { } } else { - if (isset($query)) { + if ($query !== NULL && $query !== '' && $query !== FALSE) { return $base . $script . '?' . $query . $fragment; } else { @@ -189,8 +189,8 @@ abstract class CRM_Utils_System_DrupalBase extends CRM_Utils_System_Base { } } 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 @@ abstract class CRM_Utils_System_DrupalBase extends CRM_Utils_System_Base { } } else { - if (isset($query)) { + if ($query !== NULL && $query !== '' && $query !== FALSE) { return $base . $script . '?' . $query . $fragment; } else {