Download & Extend

The "insert" operation in hook_user() is evaluated for every category due to an "assignment in operator" error

Project:Webserver authentication
Version:6.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:needs review

Issue Summary

In the beginning of the function webserver_auth_user, there is:

   if ($op == 'insert' && $category = 'account') {

I guess the '=' is a bug and was meant to be '=='.

Regards,
--
Yedidyah Bar David
System Administrator, ISOC-IL

Comments

#1

Confirmed the bug. Changing the title for transparency.

Thanks,
Chris

#2

Title:Bug in webserver_auth_user» The "insert" operation in hook_user() is evaluated for every category due to an "assignment in operator" error

Definitely put the title in the wrong place. Feeling very dumb.

~Chris

#3

Status:active» needs review

Rolled a patch for good measure.

~Chris

AttachmentSize
webserver_auth-540474-3.patch 945 bytes