mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-11-29 08:56:03 +00:00
Get relationships correctly now relationship_type also has a confers column.
This commit is contained in:
1 parent
2fa6174946
commit
d72002ff42
1 file changed
+4
-4
@@ -89,12 +89,12 @@ class DAViCalSession extends Session
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Method used to get the user's relationships
|
||||
*/
|
||||
/**
|
||||
* Method used to get the user's relationships
|
||||
*/
|
||||
function GetRelationships () {
|
||||
$this->relationships = array();
|
||||
$sql = 'SELECT relationship.rt_id, rt_name, confers FROM relationship JOIN relationship_type USING (rt_id) WHERE from_user = '.$this->user_no;
|
||||
$sql = 'SELECT r.rt_id, rt_name, r.confers FROM relationship r JOIN relationship_type USING (rt_id) WHERE from_user = '.$this->user_no;
|
||||
$qry = new PgQuery( $sql );
|
||||
if ( $qry->Exec('DAViCalSession') && $qry->rows > 0 ) {
|
||||
while( $relationship = $qry->Fetch() ) {
|
||||
|
||||
Reference in new issue
Block a user