Skip to content

Commit

Permalink
fix editing bug
Browse files Browse the repository at this point in the history
  • Loading branch information
robbat2 committed Jul 16, 2003
1 parent eac7836 commit 68547b4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions addedit.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
/* $Id: addedit.php,v 1.4 2003/06/05 23:22:18 robbat2 Exp $ */
/* $Id: addedit.php,v 1.5 2003/07/16 03:46:46 robbat2 Exp $ */
/* $Source: /code/convert/cvsroot/infrastructure/rats/addedit.php,v $ */

include './header.inc.php';
Expand Down Expand Up @@ -35,10 +35,10 @@
<table class="dataform">
<?php
$data = NULL;
if($editData !== NULL) {
$data = $editData;
}
foreach($tableData[$tableName]['_view_cols'] as $itemkey) {
if($editData !== NULL) {
$data = $editData[$itemkey];
}
formelement($tableName,$tableData,$itemkey,$data);
}
?>
Expand Down

0 comments on commit 68547b4

Please sign in to comment.