bugfix: list correct profile IDs on login page

This commit is contained in:
Roland Angerer 2013-06-13 11:24:51 +02:00
parent edcbb8c997
commit 0806d68bac

View file

@ -237,7 +237,7 @@ class Handler_Public extends Handler {
function getProfiles() {
$login = $this->dbh->escape_string($_REQUEST["login"]);
$result = $this->dbh->query("SELECT * FROM ttrss_settings_profiles,ttrss_users
$result = $this->dbh->query("SELECT ttrss_settings_profiles.* FROM ttrss_settings_profiles,ttrss_users
WHERE ttrss_users.id = ttrss_settings_profiles.owner_uid AND login = '$login' ORDER BY title");
print "<select dojoType='dijit.form.Select' style='width : 220px; margin : 0px' name='profile'>";