diff options
| author | Damien Regad <dregad@mantisbt.org> | 2022-03-29 11:16:37 +0200 |
|---|---|---|
| committer | Damien Regad <dregad@mantisbt.org> | 2022-03-29 11:22:12 +0200 |
| commit | 10f09137d071145b0a13a8e1ea226520f202bf7d (patch) | |
| tree | d033a2ab3846840d4a4e6f1a3a4cc18ee9955185 /adodb-xmlschema03.inc.php | |
| parent | 8afbccab625719bc44bfdecf56b45b9457ab46cd (diff) | |
| download | adodb-10f09137d071145b0a13a8e1ea226520f202bf7d.tar.gz adodb-10f09137d071145b0a13a8e1ea226520f202bf7d.tar.bz2 adodb-10f09137d071145b0a13a8e1ea226520f202bf7d.zip | |
xml: fix PHP Notice in dbData::create()
Fixes #822
Diffstat (limited to 'adodb-xmlschema03.inc.php')
| -rw-r--r-- | adodb-xmlschema03.inc.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/adodb-xmlschema03.inc.php b/adodb-xmlschema03.inc.php index 2363a4a4..a03386b3 100644 --- a/adodb-xmlschema03.inc.php +++ b/adodb-xmlschema03.inc.php @@ -965,7 +965,8 @@ class dbData extends dbObject { foreach( $row as $field_id => $field_data ) { if( !array_key_exists( $field_id, $table_fields ) ) { if( is_numeric( $field_id ) ) { - $field_id = reset( array_keys( $table_fields ) ); + $keys = array_keys($table_fields); + $field_id = reset($keys); } else { continue; } |
