Author: chabotc
Date: Fri Feb 20 11:08:03 2009
New Revision: 746203

URL: http://svn.apache.org/viewvc?rev=746203&view=rev
Log:
s/signed/unsigned in building the request queue

Modified:
    incubator/shindig/trunk/php/src/gadgets/GadgetFactory.php

Modified: incubator/shindig/trunk/php/src/gadgets/GadgetFactory.php
URL: 
http://svn.apache.org/viewvc/incubator/shindig/trunk/php/src/gadgets/GadgetFactory.php?rev=746203&r1=746202&r2=746203&view=diff
==============================================================================
--- incubator/shindig/trunk/php/src/gadgets/GadgetFactory.php (original)
+++ incubator/shindig/trunk/php/src/gadgets/GadgetFactory.php Fri Feb 20 
11:08:03 2009
@@ -201,11 +201,11 @@
     foreach ($gadget->getPreloads() as $preload) {
       if (!empty($preload['href'])) {
         if (!empty($preload['authz']) && $preload['authz'] == 'SIGNED') {
-          $signedRequests[] = $preload['href'];
-        } else {
           if ($this->token == '') {
             throw new GadgetException("Signed preloading requested, but no 
valid security token set");
           }
+          $signedRequests[] = $preload['href'];
+        } else {
           $unsignedRequests[] = $preload['href'];
         }
       }


Reply via email to