$currentpivot = $upperpivot;
$pivottoshow = $currentpivot;
- if ( isset($entry->userid) ) {
+ if ( isset($entry->userispivot) ) {
// printing the user icon if defined (only when browsing authors)
$user = get_record("user","id",$entry->userid);
$pivottoshow = fullname($user);
$where = '';
}
- $sqlselect = "SELECT ge.*, $usernamefield AS glossarypivot ";
+ $sqlselect = "SELECT ge.*, $usernamefield AS glossarypivot, 1 AS userispivot ";
$sqlfrom = "FROM {$CFG->prefix}glossary_entries ge, {$CFG->prefix}user u";
$sqlwhere = "WHERE ge.userid = u.id AND
(ge.approved != 0 $userid)
if ( $offset >= 0 ) {
$limitnum = $entriesbypage;
}
+
$allentries = get_records_sql("$sqlselect $sqlfrom $sqlwhere $sqlorderby", $limitfrom, $limitnum);
?>
echo '<tr>';
$pivottoshow = $currentpivot;
- if ( isset($entry->userid) ) {
+ if ( isset($entry->userispivot) ) {
// printing the user icon if defined (only when browsing authors)
echo '<td align="left">';