From 9098b8e80d4d790609f0a267b88169a129366b1b Mon Sep 17 00:00:00 2001 From: msquare Date: Fri, 18 Nov 2016 08:47:52 +0100 Subject: reduce complexity of user view --- includes/model/User_model.php | 17 ----------------- 1 file changed, 17 deletions(-) (limited to 'includes/model/User_model.php') diff --git a/includes/model/User_model.php b/includes/model/User_model.php index 13695821..344a3886 100644 --- a/includes/model/User_model.php +++ b/includes/model/User_model.php @@ -274,23 +274,6 @@ function User($user_id) { return null; } -/** - * TODO: Merge into normal user function - * Returns user by id (limit informations. - * - * @param $user_id UID - */ -function mUser_Limit($user_id) { - $user_source = sql_select("SELECT `UID`, `Nick`, `Name`, `Vorname`, `Telefon`, `DECT`, `Handy`, `email`, `jabber` FROM `User` WHERE `UID`='" . sql_escape($user_id) . "' LIMIT 1"); - if ($user_source === false) { - return false; - } - if (count($user_source) > 0) { - return $user_source[0]; - } - return null; -} - /** * Returns User by api_key. * -- cgit v1.3.1