You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@shindig.apache.org by ch...@apache.org on 2008/05/23 02:02:15 UTC

svn commit: r659321 - /incubator/shindig/trunk/php/src/gadgets/oauth/BasicGadgetOAuthTokenStore.php

Author: chabotc
Date: Thu May 22 17:02:14 2008
New Revision: 659321

URL: http://svn.apache.org/viewvc?rev=659321&view=rev
Log:
boolean assignment instead of a cache load :P

Modified:
    incubator/shindig/trunk/php/src/gadgets/oauth/BasicGadgetOAuthTokenStore.php

Modified: incubator/shindig/trunk/php/src/gadgets/oauth/BasicGadgetOAuthTokenStore.php
URL: http://svn.apache.org/viewvc/incubator/shindig/trunk/php/src/gadgets/oauth/BasicGadgetOAuthTokenStore.php?rev=659321&r1=659320&r2=659321&view=diff
==============================================================================
--- incubator/shindig/trunk/php/src/gadgets/oauth/BasicGadgetOAuthTokenStore.php (original)
+++ incubator/shindig/trunk/php/src/gadgets/oauth/BasicGadgetOAuthTokenStore.php Thu May 22 17:02:14 2008
@@ -57,7 +57,7 @@
 		$cache = new $cache();
 		
 		// determine which requests we can load from cache, and which we have to actually fetch
-		if ($cachedRequest = $cache->get(md5($gadgetUri)) !== false) {
+		if (($cachedRequest = $cache->get(md5($gadgetUri))) !== false) {
 			$gadget = $cachedRequest;
 		} else {
 			$remoteContentRequest = new RemoteContentRequest($gadgetUri);