Skip to content

Commit

Permalink
Get rid of unnecessary (and invalid) g modifier
Browse files Browse the repository at this point in the history
  • Loading branch information
jonhoo committed Feb 6, 2014
1 parent a12b4bc commit 6b13a86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Jonhoo/Browser/RemoteForm.php
Expand Up @@ -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] ) ) {
Expand Down

0 comments on commit 6b13a86

Please sign in to comment.