From: Eileen McNaughton Date: Sun, 20 Oct 2013 23:23:43 +0000 (+1300) Subject: Drupal user fns - colemans' code X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=8982d5f876ad84336ca99eda7b3e880dcdd76224;p=civicrm-core.git Drupal user fns - colemans' code --- diff --git a/CRM/Utils/System/Drupal6.php b/CRM/Utils/System/Drupal6.php index 47e4b36113..0c9f8bdffe 100644 --- a/CRM/Utils/System/Drupal6.php +++ b/CRM/Utils/System/Drupal6.php @@ -176,11 +176,11 @@ class CRM_Utils_System_Drupal6 extends CRM_Utils_System_DrupalBase { "; $result = db_query($sql); - $rows = db_fetch_array($result); - if (!$rows) { + $row = db_fetch_array($result); + if (!$row) { return; } - $row = $rows[0]; + $user = NULL; if (!empty($row)) {