diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-07-05 07:13:25 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-07-05 07:13:25 +0000 |
commit | 83c7a25a76efaf74467c6654f20be3a8029040d9 (patch) | |
tree | aa90f459c74d7d1ec8ba38fa4077873ed4f65dd8 /lib/general.lib.php | |
parent | edf482ff3d21c84d99f25b84884563a8781fa7ae (diff) | |
download | ampache-83c7a25a76efaf74467c6654f20be3a8029040d9.tar.gz ampache-83c7a25a76efaf74467c6654f20be3a8029040d9.tar.bz2 ampache-83c7a25a76efaf74467c6654f20be3a8029040d9.zip |
missed some requires, tweaked the lastfm class and removed an unused function from general
Diffstat (limited to 'lib/general.lib.php')
-rw-r--r-- | lib/general.lib.php | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/lib/general.lib.php b/lib/general.lib.php index 03855ad8..1652d28a 100644 --- a/lib/general.lib.php +++ b/lib/general.lib.php @@ -729,27 +729,6 @@ function invert_boolean($value) { } // invert_boolean /** - * get_user_from_username - * As we are moving away from user from username to user from - * unique ID (smaller/faster/more powerful!) this can be used - * to return a user object if all you've got is the username - */ -function get_user_from_username($username) { - - $username = Dba::escape($username); - - $sql = "SELECT `id` FROM `user` WHERE `username`='$username'"; - $db_results = Dba::query($sql); - - $results = Dba::fetch_assoc($db_results); - - $user = new User($results['id']); - - return $user; - -} // get_user_from_username - -/** * get_plugins * This returns a list of the plugins and their information */ |