From 7a843201f3ed10d8aa8d4f81c1d19f171e2e1e6b Mon Sep 17 00:00:00 2001 From: Skylar Ittner Date: Fri, 7 Sep 2018 19:22:06 -0600 Subject: [PATCH] Fix regression where tasks could not be assigned --- action.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.php b/action.php index 8ee4777..a2cb47b 100644 --- a/action.php +++ b/action.php @@ -152,7 +152,7 @@ switch ($VARS['action']) { } else if ($VARS['taskdueby'] == "") { $database->update('tasks', ['taskdueby' => null], ['taskid' => $VARS['taskid']]); } - if (!is_empty($VARS['assignedto']) && user_exists($VARS['assignedto'])) { + if (!is_empty($VARS['assignedto']) && User::byUsername($VARS['assignedto'])->exists()) { $uid = User::byUsername($VARS['assignedto'])->getUID(); $managed_users = (new User($_SESSION['uid']))->getManagedUsers(); $managed_uids = [];