mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-09-01 18:48:17 +00:00
Get relationships correctly now relationship_type also has a confers column.
This commit is contained in:
parent
2fa6174946
commit
d72002ff42
@ -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 () {
|
function GetRelationships () {
|
||||||
$this->relationships = array();
|
$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 );
|
$qry = new PgQuery( $sql );
|
||||||
if ( $qry->Exec('DAViCalSession') && $qry->rows > 0 ) {
|
if ( $qry->Exec('DAViCalSession') && $qry->rows > 0 ) {
|
||||||
while( $relationship = $qry->Fetch() ) {
|
while( $relationship = $qry->Fetch() ) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user