Drupal user fns - colemans' code
authorEileen McNaughton <eileen@mcnaughty.com>
Sun, 20 Oct 2013 23:23:43 +0000 (12:23 +1300)
committerEileen McNaughton <eileen@mcnaughty.com>
Sun, 20 Oct 2013 23:23:43 +0000 (12:23 +1300)
CRM/Utils/System/Drupal6.php

index 47e4b36113cd4103085069c88daab5eeff63f969..0c9f8bdffede9048145f114297bd72a2c434b067 100644 (file)
@@ -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)) {