From 6679588e43b0f694421d48e4ddb071972a127dca Mon Sep 17 00:00:00 2001 From: RaindropsSys Date: Sun, 11 Jun 2023 16:47:34 +0200 Subject: Updated 11 files and added 2 files (automated) --- includes/util/functions.inc | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'includes/util') diff --git a/includes/util/functions.inc b/includes/util/functions.inc index e64bc5a..ad54706 100644 --- a/includes/util/functions.inc +++ b/includes/util/functions.inc @@ -5,6 +5,18 @@ require_once $_SERVER['DOCUMENT_ROOT'] . "/includes/util/bitset.inc"; require_once $_SERVER['DOCUMENT_ROOT'] . "/includes/util/homepage.inc"; require_once $_SERVER['DOCUMENT_ROOT'] . "/includes/util/random.inc"; +if (!function_exists("getLastFronted")) { + function getLastFronted($members, $id) { + foreach ($members as $member) { + if ($member["id"] === $id) { + return $member["_lastFronted"]; + } + } + + return -1; + } +} + if (!function_exists("createJob")) { function createJob($title, $options) { $job = [ -- cgit