Skip to content

Commit

Permalink
*6907* Fixed translation parameter mismatch check
Browse files Browse the repository at this point in the history
  • Loading branch information
asmecher committed Oct 4, 2011
1 parent f947acf commit 51552d6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion classes/i18n/PKPLocale.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,8 @@ function getParameterNames($source) {
$matches = null;
String::regexp_match_all('/({\$[^}]+})/' /* '/{\$[^}]+})/' */, $source, $matches);
array_shift($matches); // Knock the top element off the array
return $matches;
if (isset($matches[0])) return $matches[0];
return array();
}
}

Expand Down

0 comments on commit 51552d6

Please sign in to comment.