Fix for CiviCRM hook_user to not set an empty $_SESSION["civicrm"] for anonymous users - needed for Pressflow

  1. function civicrm_user( $type, &$edit, &$user, $category = NULL )
  2. {
  3.     $current_user = $_GLOBALS["user"];
  4.                
  5.                 if($current_user->uid == 0 && (arg(0) == "user" && is_numeric(arg(1)))) {
  6.                   return;
  7.                 }
  8. /* snip */
  9.  
  10. }

Submit Fix

Any tags you'd like to associate with your code, delimitered by commas (example: Views, CCK, Module, etc).
Select the syntax highlighting mode to use.