diff options
author | Daniel Hofstetter <daniel.hofstetter@42dh.com> | 2012-08-14 15:16:31 +0200 |
---|---|---|
committer | Daniel Hofstetter <daniel.hofstetter@42dh.com> | 2012-08-14 15:16:31 +0200 |
commit | 5c78cf24bcdf5dfafbaa42210016809654125bc4 (patch) | |
tree | ceadbd004b9ef05dbf80c4ae8cf31e55baba04df /Auth/OpenID/Parse.php | |
parent | dc4e0181a83656874db233916e17efbe8d8207d8 (diff) | |
download | php-openid-5c78cf24bcdf5dfafbaa42210016809654125bc4.zip php-openid-5c78cf24bcdf5dfafbaa42210016809654125bc4.tar.gz php-openid-5c78cf24bcdf5dfafbaa42210016809654125bc4.tar.bz2 |
Return string instead of array
Diffstat (limited to 'Auth/OpenID/Parse.php')
-rw-r--r-- | Auth/OpenID/Parse.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Auth/OpenID/Parse.php b/Auth/OpenID/Parse.php index c81cb01..0461bdc 100644 --- a/Auth/OpenID/Parse.php +++ b/Auth/OpenID/Parse.php @@ -219,7 +219,11 @@ class Auth_OpenID_Parse { function match($regexp, $text, &$match) { if (!is_callable('mb_ereg_search_init')) { - return preg_match($regexp, $text, $match); + if (!preg_match($regexp, $text, $match)) { + return false; + } + $match = $match[0]; + return true; } $regexp = substr($regexp, 1, strlen($regexp) - 2 - strlen($this->_re_flags)); |