error checking

This commit is contained in:
skeeter 2000-11-18 22:00:35 +00:00
parent f80ca2be30
commit cec8e1be2e

View File

@ -101,7 +101,8 @@
<tr bgcolor="<?php echo $phpgw_info["theme"]["th_bg"]; ?>"> <tr bgcolor="<?php echo $phpgw_info["theme"]["th_bg"]; ?>">
<?php <?php
while ($column = each($abc)) { while ($column = each($abc)) {
if ($phpgw_info["user"]["preferences"]["addressbook"][$column[0]]) { if (isset($phpgw_info["user"]["preferences"]["addressbook"][$column[0]]) &&
$phpgw_info["user"]["preferences"]["addressbook"][$column[0]]) {
echo '<td height="21">'; echo '<td height="21">';
echo '<font size="-1" face="Arial, Helvetica, sans-serif">'; echo '<font size="-1" face="Arial, Helvetica, sans-serif">';
echo $phpgw->nextmatchs->show_sort_order($sort,"ab_" . $column[0],$order,"index.php",lang($column[1])); echo $phpgw->nextmatchs->show_sort_order($sort,"ab_" . $column[0],$order,"index.php",lang($column[1]));
@ -133,8 +134,9 @@
</form> </form>
<?php <?php
if ($query) { if (isset($query) && $query) {
if ($phpgw_info["apps"]["timetrack"]["enabled"]){ if (isset($phpgw_info["apps"]["timetrack"]["enabled"]) &&
$phpgw_info["apps"]["timetrack"]["enabled"]) {
$phpgw->db->query("SELECT a.ab_id,a.ab_owner,a.ab_firstname,a.ab_lastname," $phpgw->db->query("SELECT a.ab_id,a.ab_owner,a.ab_firstname,a.ab_lastname,"
. "a.ab_email,a.ab_wphone,c.company_name " . "a.ab_email,a.ab_wphone,c.company_name "
. "from addressbook as a, customers as c where a.ab_company_id = c.company_id " . "from addressbook as a, customers as c where a.ab_company_id = c.company_id "
@ -234,11 +236,19 @@
</table> </table>
<form method="POST" action="<?php echo $phpgw->link("add.php"); ?>"> <form method="POST" action="<?php echo $phpgw->link("add.php"); ?>">
<?php if(isset($sort) && $sort) { ?>
<input type="hidden" name="sort" value="<?php echo $sort; ?>"> <input type="hidden" name="sort" value="<?php echo $sort; ?>">
<?php } ?>
<?php if(isset($order) && $order) { ?>
<input type="hidden" name="order" value="<?php echo $order; ?>"> <input type="hidden" name="order" value="<?php echo $order; ?>">
<?php } ?>
<?php if(isset($query) && $query) { ?>
<input type="hidden" name="query" value="<?php echo $query; ?>"> <input type="hidden" name="query" value="<?php echo $query; ?>">
<?php } ?>
<input type="hidden" name="start" value="<?php echo $start; ?>"> <input type="hidden" name="start" value="<?php echo $start; ?>">
<?php if(isset($filter) && $filter) { ?>
<input type="hidden" name="filter" value="<?php echo $filter; ?>"> <input type="hidden" name="filter" value="<?php echo $filter; ?>">
<?php } ?>
<table width="75%" border="0" cellspacing="0" cellpadding="4"> <table width="75%" border="0" cellspacing="0" cellpadding="4">
<tr> <tr>
<td width="4%"> <td width="4%">