summaryrefslogtreecommitdiff
path: root/classes/Profile.php
diff options
context:
space:
mode:
authorZach Copley <zach@status.net>2010-01-11 14:11:43 -0800
committerZach Copley <zach@status.net>2010-01-14 02:41:06 +0000
commit31c5ebb95ccf40d34a824099acb24f86e7f67095 (patch)
tree43dbf0a43544c9b5b0c1c2cfcb0308bd19d0f226 /classes/Profile.php
parent7885dadfe7807f6a87c3d8ff0687280f4875eeef (diff)
Better detial in connected OAuth applications list
Diffstat (limited to 'classes/Profile.php')
-rw-r--r--classes/Profile.php9
1 files changed, 5 insertions, 4 deletions
diff --git a/classes/Profile.php b/classes/Profile.php
index 687215b11..fef2a2171 100644
--- a/classes/Profile.php
+++ b/classes/Profile.php
@@ -355,10 +355,11 @@ class Profile extends Memcached_DataObject
function getApplications($offset = 0, $limit = null)
{
$qry =
- 'SELECT oauth_application_user.* ' .
- 'FROM oauth_application_user ' .
- 'WHERE profile_id = %d ' .
- 'ORDER BY created DESC ';
+ 'SELECT a.* ' .
+ 'FROM oauth_application_user u, oauth_application a ' .
+ 'WHERE u.profile_id = %d ' .
+ 'AND a.id = u.application_id ' .
+ 'ORDER BY u.created DESC ';
if ($offset > 0) {
if (common_config('db','type') == 'pgsql') {