summaryrefslogtreecommitdiffstats
path: root/Auth/OpenID/BigMath.php
diff options
context:
space:
mode:
Diffstat (limited to 'Auth/OpenID/BigMath.php')
-rw-r--r--Auth/OpenID/BigMath.php16
1 files changed, 14 insertions, 2 deletions
diff --git a/Auth/OpenID/BigMath.php b/Auth/OpenID/BigMath.php
index 40de144..98815f5 100644
--- a/Auth/OpenID/BigMath.php
+++ b/Auth/OpenID/BigMath.php
@@ -427,7 +427,7 @@ function &Auth_OpenID_getMathLib()
return $lib;
}
- if (defined('Auth_OpenID_NO_MATH_SUPPORT')) {
+ if (Auth_OpenID_noMathSupport()) {
$null = null;
return $null;
}
@@ -443,7 +443,7 @@ function &Auth_OpenID_getMathLib()
}
$triedstr = implode(", ", $tried);
- define('Auth_OpenID_NO_MATH_SUPPORT', true);
+ Auth_OpenID_setNoMathSupport();
$result = null;
return $result;
@@ -456,4 +456,16 @@ function &Auth_OpenID_getMathLib()
return $lib;
}
+function Auth_OpenID_setNoMathSupport()
+{
+ if (!defined('Auth_OpenID_NO_MATH_SUPPORT')) {
+ define('Auth_OpenID_NO_MATH_SUPPORT', true);
+ }
+}
+
+function Auth_OpenID_noMathSupport()
+{
+ return defined('Auth_OpenID_NO_MATH_SUPPORT');
+}
+
?>