Index: branches/5.3.x/core/units/visits/visits_config.php =================================================================== diff -u -N -r15677 -r16389 --- branches/5.3.x/core/units/visits/visits_config.php (.../visits_config.php) (revision 15677) +++ branches/5.3.x/core/units/visits/visits_config.php (.../visits_config.php) (revision 16389) @@ -1,6 +1,6 @@ Array ('type' => 'int', 'formatter' => 'kDateFormatter', 'custom_filter' => 'date_range', 'default' => NULL), 'Referer' => Array ('type' => 'string', 'not_null' => '1', 'default' => ''), 'IPAddress' => Array ('type' => 'string', 'not_null' => '1', 'default' => ''), - 'AffiliateId' => Array ('type' => 'int','formatter' => 'kLEFTFormatter', 'error_msgs' => Array ('invalid_option' => '!la_error_UserNotFound!'), 'options' => Array (0 => 'lu_None'), 'left_sql' => 'SELECT %s FROM '.TABLE_PREFIX.'Affiliates af LEFT JOIN '.TABLE_PREFIX.'Users u ON u.PortalUserId = af.PortalUserId WHERE %s','left_key_field' => 'AffiliateId','left_title_field' => 'IF(u.Email = "", u.Username, u.Email)','not_null'=>1,'default'=>0), + 'AffiliateId' => Array ('type' => 'int', 'formatter' => 'kLEFTFormatter', 'error_msgs' => Array ('invalid_option' => '!la_error_UserNotFound!'), 'options' => Array (0 => 'lu_None'), 'left_sql' => 'SELECT %s FROM '.TABLE_PREFIX.'Affiliates af LEFT JOIN '.TABLE_PREFIX.'Users u ON u.PortalUserId = af.PortalUserId WHERE %s', 'left_key_field' => 'AffiliateId', 'left_title_field' => 'IF(u.Email = "", u.Username, u.Email)', 'not_null'=>1,'default'=>0), 'PortalUserId' => Array ('type' => 'int', 'not_null' => '1', 'default' => USER_GUEST), ), @@ -163,4 +163,4 @@ ), ), ), -); \ No newline at end of file +);