~hww3/caudium

d0bd0257cd81f3f423026cfb3426416fb8f194ec — William Welliver 1 year, 1 month ago cf80214
auth_sqluserdb: fix embedded array when using additional fields
1 files changed, 3 insertions(+), 3 deletions(-)

M server/modules/auth/auth_sqldb.pike
M server/modules/auth/auth_sqldb.pike => server/modules/auth/auth_sqldb.pike +3 -3
@@ 214,13 214,13 @@ void setup_queries()
    usertablefields+=({QUERY(user_gidf) + " as _primary_group"});
    usertablefields+=({QUERY(user_passwordf) + " as _password"});

    if(QUERY(user_emailf)!="")    
    if(QUERY(user_emailf) && sizeof(QUERY(user_emailf))>0)    
      usertablefields+=({QUERY(user_emailf) + " as _email"});
    if(QUERY(user_homedirectoryf)!="")    
    if(QUERY(user_homedirectoryf) && sizeof(QUERY(user_homedirectoryf))>0)    
      usertablefields+=({QUERY(user_homedirectoryf) + " as _home"});

    if(QUERY(user_otherf) && sizeof(QUERY(user_otherf))>0)
      usertablefields+=({(QUERY(user_otherf)/",")});
      usertablefields+=QUERY(user_otherf)/",";

    if(QUERY(user_usernamef) && QUERY(usertable))
      query_getusers="SELECT " + QUERY(user_usernamef) + " AS _username FROM " +  QUERY(usertable);