diff --git a/globals/functions.php b/globals/functions.php index aa193f4..5194a57 100644 --- a/globals/functions.php +++ b/globals/functions.php @@ -1781,18 +1781,6 @@ function rankExists($groupid, $rank) return false; } -function generalGroupConfig($groupid) -{ - $group = $GLOBALS['pdo']->prepare("SELECT * FROM groups WHERE id = :u"); - $group->bindParam(":u", $groupid, PDO::PARAM_INT); - $group->execute(); - $group = $group->fetch(PDO::FETCH_OBJ); - $groupname = $group->name; - $groupdescription = $group->description; - $groupapproval = $group->manualapproval; - -} - function groupJoinRequests($groupid) { $requests = $GLOBALS['pdo']->prepare("SELECT * FROM group_join_requests WHERE groupid = :gid ORDER BY whenRequested DESC"); diff --git a/html/asset/index.php b/html/asset/index.php index 1ed8d2d..d345be6 100644 --- a/html/asset/index.php +++ b/html/asset/index.php @@ -44,7 +44,7 @@ if ($id) { if (isAssetApproved($id) and !isAssetModerated($id)) //if the asset is approved and not moderated { - if (WebContextManager::VerifyAccessKeyHeader()) //immediately allow full access (passing true disables die() and returns true or false) + if (WebContextManager::VerifyAccessKeyHeader()) //immediately allow full access { ReturnAsset($iteminfo->Hash, $iteminfo->AssetTypeId); }