mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-25 20:31:31 +02:00
Fix view if no prefs set
This commit is contained in:
parent
7d3e2cd987
commit
0eb5aeea7e
@ -42,6 +42,19 @@
|
|||||||
$colname[$column[0]] = $column[1];
|
$colname[$column[0]] = $column[1];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// No prefs?
|
||||||
|
if (!$columns_to_display ) {
|
||||||
|
$columns_to_display = array(
|
||||||
|
"n_given" => "n_given",
|
||||||
|
"n_family" => "n_family",
|
||||||
|
"org_name" => "org_name"
|
||||||
|
);
|
||||||
|
while ($column = each($columns_to_display)) {
|
||||||
|
$colname[$column[0]] = $column[1];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// merge in extra fields
|
// merge in extra fields
|
||||||
$extrafields = array (
|
$extrafields = array (
|
||||||
"pager" => "pager",
|
"pager" => "pager",
|
||||||
@ -57,6 +70,7 @@
|
|||||||
$view_header = "<p> <b>" . lang("Address book - view") . "</b><hr><p>";
|
$view_header = "<p> <b>" . lang("Address book - view") . "</b><hr><p>";
|
||||||
$view_header .= '<table border="0" cellspacing="2" cellpadding="2" width="80%" align="center">';
|
$view_header .= '<table border="0" cellspacing="2" cellpadding="2" width="80%" align="center">';
|
||||||
|
|
||||||
|
reset($columns_to_display);
|
||||||
while ($column = each($columns_to_display)) { // each entry column
|
while ($column = each($columns_to_display)) { // each entry column
|
||||||
$columns_html .= "<tr><td><b>" . display_name($colname[$column[0]]) . "</b>:</td>";
|
$columns_html .= "<tr><td><b>" . display_name($colname[$column[0]]) . "</b>:</td>";
|
||||||
$ref=$data="";
|
$ref=$data="";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user