From 6103c166d2a4104d5c3b12b8e5b46d87d51c18b2 Mon Sep 17 00:00:00 2001 From: rollox Date: Mon, 6 Jun 2016 01:18:09 +0100 Subject: [PATCH] CRM-18743 - Undefined variable $order Fixes 3 notice/errors stating "Undefined variable: order in CRM_Contact_BAO_Query->prepareOrderBy()" on Drupal user page when the user record is linked to a Civi contact record. eg at path: user/1 --- CRM/Contact/BAO/Query.php | 1 + 1 file changed, 1 insertion(+) diff --git a/CRM/Contact/BAO/Query.php b/CRM/Contact/BAO/Query.php index 8d0bc48bdb..537744ad75 100644 --- a/CRM/Contact/BAO/Query.php +++ b/CRM/Contact/BAO/Query.php @@ -5952,6 +5952,7 @@ AND displayRelType.is_active = 1 * list(string $orderByClause, string $additionalFromClause). */ protected function prepareOrderBy($sort, $sortByChar, $sortOrder, $additionalFromClause) { + $order = NULL; $config = CRM_Core_Config::singleton(); if ($config->includeOrderByClause || isset($this->_distinctComponentClause) -- 2.25.1