diff --git a/includes/account.php b/includes/account.php index bc941df..034f2d8 100644 --- a/includes/account.php +++ b/includes/account.php @@ -1174,7 +1174,7 @@ } if($_SESSION['_config']['name'] != "") $emails .= "commonName = ".$_SESSION['_config']['name']."\n"; - if($org['OU']) + if($_SESSION['_config']['OU']) $emails .= "organizationalUnitName = ".$_SESSION['_config']['OU']."\n"; if($org['O']) $emails .= "organizationName = ".$org['O']."\n"; @@ -1220,7 +1220,7 @@ $defaultemail = $_REQUEST['email']; $csrsubject .= "/emailAddress=$_REQUEST[email]"; } - if($org['OU']) + if($_SESSION['_config']['OU']) $csrsubject .= "/organizationalUnitName=".$_SESSION['_config']['OU']; if($org['O']) $csrsubject .= "/organizationName=".$org['O']; @@ -1469,7 +1469,7 @@ $org = mysql_fetch_assoc(mysql_query($query)); $csrsubject = ""; - if($org['OU']) + if($_SESSION['_config']['OU']) $csrsubject .= "/organizationalUnitName=".$_SESSION['_config']['OU']; if($org['O']) $csrsubject .= "/organizationName=".$org['O']; @@ -1865,7 +1865,7 @@ } } - if($id == 33 && $_SESSION['profile']['admin'] != 1) + if($id == 33 && $_SESSION['profile']['orgadmin'] != 1) { $orgid = intval($_SESSION['_config']['orgid']); $query = "select * from `org` where `orgid`='$orgid' and `memid`='".$_SESSION['profile']['id']."' and `masteracc`='1'";