Improved bi detection, indenting

This commit is contained in:
Mattia Mascarello 2021-08-24 03:37:01 +02:00 committed by GitHub
parent 4d62f44ce0
commit 90866cd29c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3,11 +3,12 @@ function flagGetFromUser($p){
$re=[];
$o = strtoupper($p->orient." ".$p->gender);
//orientations, sexual
if (contains("LESB", $o)) $re[]= "lesbian";
if ("BI" == explode(" ",$o)[0]) $re[]="bi";
if (contains("LESB", $o)) $re[]= "lesbian";
if ("BI" == explode(" ",$o)[0]) $re[]="bi";
if (contains("ACE", $o)) $re[]= "asex";
if (contains("ASE", $o)) $re[]= "asex";
if (contains("GAY", $o)) $re[]= "gay";
if (contains("BIS", $o)) $re[]= "bi";
if (contains("BSX", $o)) $re[]= "bi";
if (contains("PAN", $o)) $re[]= "pan";
if (contains("LELL", $o)) $re[]= "lesbian";