Index: tokenauth.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/tokenauth/tokenauth.module,v
retrieving revision 1.5
diff -u -r1.5 tokenauth.module
--- tokenauth.module	14 Nov 2006 21:26:19 -0000	1.5
+++ tokenauth.module	10 Mar 2007 21:03:30 -0000
@@ -4,7 +4,7 @@
 function tokenauth_init() {
   global $user;
   // process any provided token and log in user
-  if (!$user->uid && $_REQUEST['token'] && tokenauth_allowed_pages($_GET['q'] && function_exists('drupal_set_content'))) {
+  if (!$user->uid && $_REQUEST['token'] && tokenauth_allowed_pages($_GET['q']) && function_exists('drupal_set_content')) {
     $sql = "SELECT tt.uid FROM {tokenauth_tokens} tt INNER JOIN {users} u ON tt.uid = u.uid WHERE token = '%s' AND u.status != 0";
     if ($uid = db_result(db_query($sql, $_REQUEST['token']))) {
       $user = user_load(array('uid' => $uid));