diff --git a/src/Jonhoo/Browser/RemoteForm.php b/src/Jonhoo/Browser/RemoteForm.php index d3238ae..047a563 100644 --- a/src/Jonhoo/Browser/RemoteForm.php +++ b/src/Jonhoo/Browser/RemoteForm.php @@ -155,7 +155,7 @@ private function _setAttributeByString ( $fieldName, $fieldValue ) { // Find all other indexes $matches = array(); - preg_match_all ( "/\[([^\]]+)\]/g", $fieldName, $matches, PREG_PATTERN_ORDER ); + preg_match_all ( "/\[([^\]]+)\]/", $fieldName, $matches, PREG_PATTERN_ORDER ); // No other indexes, set value for first index and return if ( empty ( $matches[1] ) ) {