diff options
author | msquare <msquare@notrademark.de> | 2016-09-29 12:45:06 +0200 |
---|---|---|
committer | msquare <msquare@notrademark.de> | 2016-09-29 12:45:06 +0200 |
commit | 07ddbb0f4c76253b1d888ceab555bdf26992fd01 (patch) | |
tree | 9c4b6f3528e144bf675c78c6ddae848bf41c2cd6 /includes/model/User_model.php | |
parent | c231070dcc91d976a879674dd3fae7972cb064cf (diff) |
make short variable names longer
Diffstat (limited to 'includes/model/User_model.php')
-rw-r--r-- | includes/model/User_model.php | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/includes/model/User_model.php b/includes/model/User_model.php index 3d5416da..7f9170df 100644 --- a/includes/model/User_model.php +++ b/includes/model/User_model.php @@ -160,10 +160,10 @@ function User_validate_Nick($nick) { /** * Returns user by id. * - * @param $id UID + * @param $user_id UID */ -function User($id) { - $user_source = sql_select("SELECT * FROM `User` WHERE `UID`='" . sql_escape($id) . "' LIMIT 1"); +function User($user_id) { + $user_source = sql_select("SELECT * FROM `User` WHERE `UID`='" . sql_escape($user_id) . "' LIMIT 1"); if ($user_source === false) { return false; } @@ -177,10 +177,10 @@ function User($id) { * TODO: Merge into normal user function * Returns user by id (limit informations. * - * @param $id UID + * @param $user_id UID */ -function mUser_Limit($id) { - $user_source = sql_select("SELECT `UID`, `Nick`, `Name`, `Vorname`, `Telefon`, `DECT`, `Handy`, `email`, `jabber` FROM `User` WHERE `UID`='" . sql_escape($id) . "' LIMIT 1"); +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; } |