summaryrefslogtreecommitdiff
path: root/includes/util
diff options
context:
space:
mode:
Diffstat (limited to 'includes/util')
-rw-r--r--includes/util/functions.inc12
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 = [