summaryrefslogtreecommitdiff
path: root/adodb-xmlschema.inc.php
diff options
context:
space:
mode:
authorDamien Regad <dregad@mantisbt.org>2016-08-02 16:52:43 +0200
committerDamien Regad <dregad@mantisbt.org>2016-08-02 17:01:57 +0200
commit58b56e67048c765293e673d7605200037ad065ae (patch)
tree5c319541e6b55e7e470946b5a66cfa92bf7e77d3 /adodb-xmlschema.inc.php
parent85d5ae931e88fd9d9b34b17def1dd46f86ec4d3d (diff)
downloadadodb-58b56e67048c765293e673d7605200037ad065ae.tar.gz
adodb-58b56e67048c765293e673d7605200037ad065ae.tar.bz2
adodb-58b56e67048c765293e673d7605200037ad065ae.zip
xml: fix php strict warning
dbTable::_tag_open() throws "Only variables should be passed by reference" error when processing INDEX and DATA tags. Fixes #229, fixes #260
Diffstat (limited to 'adodb-xmlschema.inc.php')
-rw-r--r--adodb-xmlschema.inc.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/adodb-xmlschema.inc.php b/adodb-xmlschema.inc.php
index 08901550..de230b42 100644
--- a/adodb-xmlschema.inc.php
+++ b/adodb-xmlschema.inc.php
@@ -265,12 +265,14 @@ class dbTable extends dbObject {
switch( $this->currentElement ) {
case 'INDEX':
if( !isset( $attributes['PLATFORM'] ) OR $this->supportedPlatform( $attributes['PLATFORM'] ) ) {
- xml_set_object( $parser, $this->addIndex( $attributes ) );
+ $index = $this->addIndex( $attributes );
+ xml_set_object( $parser, $index );
}
break;
case 'DATA':
if( !isset( $attributes['PLATFORM'] ) OR $this->supportedPlatform( $attributes['PLATFORM'] ) ) {
- xml_set_object( $parser, $this->addData( $attributes ) );
+ $data = $this->addData( $attributes );
+ xml_set_object( $parser, $data );
}
break;
case 'DROP':