From d1193d28dee25827a74b4af7d18b6be5a8a7f62a Mon Sep 17 00:00:00 2001
From: Chris Pliakas <cpliakas@266779.no-reply.drupal.org>
Date: Thu, 17 Mar 2011 11:26:15 -0400
Subject: [PATCH] Issue #540474 by didib, cpliakas: Fixed assignment in operator error.

---
 webserver_auth.module |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/webserver_auth.module b/webserver_auth.module
index be53dcb..a06ea68 100644
--- a/webserver_auth.module
+++ b/webserver_auth.module
@@ -62,7 +62,7 @@ function webserver_auth_init() {
  * Implementation of hook_user().
  */
 function webserver_auth_user($op, &$edit, &$account, $category = NULL) {
-  if ($op == 'insert' && $category = 'account') {
+  if ($op == 'insert' && $category == 'account') {
     $account->name = trim($account->name);
     // Pretty up the username for NTLM authentication (i.e. Windows)
     if (variable_get('webserver_auth_strip_prefix', TRUE)) {
-- 
1.7.4.1

