From 3caf7fb81fb0951c8a79dc491bb66132e5147864 Mon Sep 17 00:00:00 2001 From: Alexey Kalnov Date: Sun, 12 Mar 2023 19:19:49 +0300 Subject: [PATCH] Update pfs.functions.php --- modules/pfs/inc/pfs.functions.php | 24 ------------------------ 1 file changed, 24 deletions(-) diff --git a/modules/pfs/inc/pfs.functions.php b/modules/pfs/inc/pfs.functions.php index 51e2d3a9e..7b7020f1d 100644 --- a/modules/pfs/inc/pfs.functions.php +++ b/modules/pfs/inc/pfs.functions.php @@ -615,27 +615,3 @@ function cot_selectbox_folders($user, $skip, $check, $name = 'folderid') return ($result); } - -/** - * Fetches user entry from DB - * - * @param int $id User ID - * @return array - * - * @deprecated - */ -function cot_userinfo($id) -{ - global $db, $db_users; - - $sql = $db->query("SELECT * FROM $db_users WHERE user_id=" . (int)$id); - if ($res = $sql->fetch()) - { - return ($res); - } - else - { - $res['user_name'] = '?'; - return ($res); - } -}