Use the item functions at many more places
This commit is contained in:
@@ -65,6 +65,21 @@ class User
|
||||
return $r;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Get owner data by nick name
|
||||
*
|
||||
* @param int $nick
|
||||
* @return boolean|array
|
||||
*/
|
||||
public static function getOwnerDataByNick($nick)
|
||||
{
|
||||
$user = dba::selectFirst('user', ['uid'], ['nickname' => $nick]);
|
||||
if (!DBM::is_result($user)) {
|
||||
return false;
|
||||
}
|
||||
return self::getOwnerDataById($user['uid']);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Returns the default group for a given user and network
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user