Author: chabotc
Date: Mon Aug  4 00:46:55 2008
New Revision: 682280

URL: http://svn.apache.org/viewvc?rev=682280&view=rev
Log:
SHINDIG-491 Don't call openssl_pkey_get_private when no key is present

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

Modified: incubator/shindig/trunk/php/src/gadgets/SigningFetcherFactory.php
URL: 
http://svn.apache.org/viewvc/incubator/shindig/trunk/php/src/gadgets/SigningFetcherFactory.php?rev=682280&r1=682279&r2=682280&view=diff
==============================================================================
--- incubator/shindig/trunk/php/src/gadgets/SigningFetcherFactory.php (original)
+++ incubator/shindig/trunk/php/src/gadgets/SigningFetcherFactory.php Mon Aug  
4 00:46:55 2008
@@ -70,9 +70,9 @@
                                        } else {
                                                $privateKey = $rsa_private_key;
                                        }
-                               }
-                               if (! $rsa_private_key = 
@openssl_pkey_get_private($privateKey, $phrase)) {
-                                       throw new Exception("Could not create 
the key");
+                                       if (! $rsa_private_key = 
@openssl_pkey_get_private($privateKey, $phrase)) {
+                                               throw new Exception("Could not 
create the key");
+                                       }
                                }
                        } catch (Exception $e) {
                                throw new Exception("Error loading private key: 
" . $e);


Reply via email to