summaryrefslogtreecommitdiffstats
path: root/Auth/OpenID/Parse.php
diff options
context:
space:
mode:
authorDaniel Hofstetter <daniel.hofstetter@42dh.com>2012-08-14 15:16:31 +0200
committerDaniel Hofstetter <daniel.hofstetter@42dh.com>2012-08-14 15:16:31 +0200
commit5c78cf24bcdf5dfafbaa42210016809654125bc4 (patch)
treeceadbd004b9ef05dbf80c4ae8cf31e55baba04df /Auth/OpenID/Parse.php
parentdc4e0181a83656874db233916e17efbe8d8207d8 (diff)
downloadphp-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.php6
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));