Skip to content

Commit

Permalink
Incrementally use ->fields for recordsets, ->f is not supported by up…
Browse files Browse the repository at this point in the history
…stream adodb.
  • Loading branch information
soranzo committed Jan 10, 2007
1 parent f3abd3c commit ccfb71f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions schemas.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/**
* Manage schemas in a database
*
* $Id: schemas.php,v 1.9 2007/01/02 17:24:44 soranzo Exp $
* $Id: schemas.php,v 1.10 2007/01/10 01:15:27 soranzo Exp $
*/

// Include application functions
Expand Down Expand Up @@ -109,7 +109,7 @@ function doCreate($msg = '') {
echo "\t<tr>\n\t\t<th class=\"data left required\">{$lang['strowner']}</th>\n";
echo "\t\t<td class=\"data1\">\n\t\t\t<select name=\"formAuth\">\n";
while (!$users->EOF) {
$uname = htmlspecialchars($users->f['usename']);
$uname = htmlspecialchars($users->fields['usename']);
echo "\t\t\t\t<option value=\"{$uname}\"",
($uname == $_POST['formAuth']) ? ' selected="selected"' : '', ">{$uname}</option>\n";
$users->moveNext();
Expand Down Expand Up @@ -162,7 +162,7 @@ function doAlter($msg = '') {

$schema = $data->getSchemaByName($_REQUEST['schema']);
if ($schema->recordCount() > 0) {
if (!isset($_POST['comment'])) $_POST['comment'] = $schema->f['nspcomment'];
if (!isset($_POST['comment'])) $_POST['comment'] = $schema->fields['nspcomment'];
if (!isset($_POST['schema'])) $_POST['schema'] = $_REQUEST['schema'];
if (!isset($_POST['name'])) $_POST['name'] = $_REQUEST['schema'];

Expand Down

0 comments on commit ccfb71f

Please sign in to comment.