summaryrefslogtreecommitdiff
path: root/classes/handler
diff options
context:
space:
mode:
authorwn_ <[email protected]>2021-03-17 16:34:52 +0000
committerwn_ <[email protected]>2021-03-17 16:37:39 +0000
commitcd52ca80abd24fb9b355264f88fd48893b2bd6b5 (patch)
tree51d54ccb74f0f039d89e3c5fb20b0e04f2673524 /classes/handler
parentbaf3ecd4cff13c69b2243ef06a56606773de3ed5 (diff)
Minor cleanup in 'Handler_Public->getProfiles'
Diffstat (limited to 'classes/handler')
-rwxr-xr-xclasses/handler/public.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/classes/handler/public.php b/classes/handler/public.php
index f9d118999..98042111b 100755
--- a/classes/handler/public.php
+++ b/classes/handler/public.php
@@ -268,16 +268,16 @@ class Handler_Public extends Handler {
if ($login) {
$profiles = ORM::for_table('ttrss_settings_profiles')
->table_alias('p')
- ->select_many('title' , ['profile_id' => 'p.id'])
- ->join('ttrss_users', ['p.owner_uid', '=', 'u.id'], 'u')
- ->where_raw('LOWER(u.login) = LOWER(?)', [$login])
+ ->select_many('title' , 'p.id')
+ ->join('ttrss_users', ['owner_uid', '=', 'u.id'], 'u')
+ ->where_raw('LOWER(login) = LOWER(?)', [$login])
->order_by_asc('title')
->find_many();
$rv = [ [ "value" => 0, "label" => __("Default profile") ] ];
foreach ($profiles as $profile) {
- array_push($rv, [ "label" => $profile->title, "value" => $profile->profile_id ]);
+ array_push($rv, [ "label" => $profile->title, "value" => $profile->id ]);
}
}