]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
fixup caching problem with server variable
authorEvan Prodromou <evan@prodromou.name>
Mon, 2 Jun 2008 19:22:42 +0000 (15:22 -0400)
committerEvan Prodromou <evan@prodromou.name>
Mon, 2 Jun 2008 19:22:42 +0000 (15:22 -0400)
darcs-hash:20080602192242-84dde-e023e8f328ec7f6c283a0f436b2dd577659d9e10.gz

lib/omb.php

index b7731dc3ae9a110110ff2f7888be9e892f9e2298..a18f0074f465c4a7ffd95321aeefd133bd9e2c38 100644 (file)
@@ -47,7 +47,7 @@ function omb_oauth_consumer() {
 
 function omb_oauth_server() {
        static $server = null;
-       if ($server) {
+       if (!$server) {
                $server = new OAuthServer(new LaconicaOAuthStore());
        }
        return $server;