diff options
author | RaindropsSys <contact@minteck.org> | 2023-06-11 16:47:34 +0200 |
---|---|---|
committer | RaindropsSys <contact@minteck.org> | 2023-06-11 16:47:34 +0200 |
commit | 6679588e43b0f694421d48e4ddb071972a127dca (patch) | |
tree | 2c25b58acd6f29d299d212b4db3f9dae8fdd19ad /includes/util/functions.inc | |
parent | 2e7294c83c6388e3855ce787f0a18c20ed652131 (diff) | |
download | pluralconnect-6679588e43b0f694421d48e4ddb071972a127dca.tar.gz pluralconnect-6679588e43b0f694421d48e4ddb071972a127dca.tar.bz2 pluralconnect-6679588e43b0f694421d48e4ddb071972a127dca.zip |
Updated 11 files and added 2 files (automated)
Diffstat (limited to 'includes/util/functions.inc')
-rw-r--r-- | includes/util/functions.inc | 12 |
1 files changed, 12 insertions, 0 deletions
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 = [ |