Fix sorting of RelationshipsTo (closes 1805272)

This commit is contained in:
Andrew Ruthven 2007-10-01 10:46:38 +13:00 committed by Andrew Ruthven
parent 5fec10917b
commit a6d0b61cbc

View File

@ -204,10 +204,10 @@ EOSQL;
$browser->SetWhere( "to_user = $this->user_no" );
if ( isset( $_GET['o']) && isset($_GET['d']) ) {
$browser->AddOrder( $_GET['o'], $_GET['d'] );
$browser->AddOrder( $_GET['o'], $_GET['d'], 1 );
}
else
$browser->AddOrder( 'rt_name', 'A' );
$browser->AddOrder( 'rt_name', 'A', 1 );
$browser->RowFormat( "<tr onMouseover=\"LinkHref(this,1);\" title=\"".translate("Click to display that user")."\" class=\"r%d\">\n", "</tr>\n", '#even' );
$browser->DoQuery();