]> source.dussan.org Git - nextcloud-server.git/commitdiff
OpenID now won't load if curl is not available
authorKamil Domanski <kdomanski@kdemail.net>
Thu, 23 Jun 2011 16:18:48 +0000 (18:18 +0200)
committerKamil Domanski <kdomanski@kdemail.net>
Thu, 23 Jun 2011 16:20:59 +0000 (18:20 +0200)
apps/user_openid/appinfo/app.php

index fb3de10e2a84fcd7c6953c08e2f43c2144c6bfb1..2e238ed3f2701e1a0e28d74a927db864f9087601 100644 (file)
@@ -1,5 +1,10 @@
 <?php
 
+//check if curl extension installed
+if (!in_array ('curl', get_loaded_extensions())){
+       return;
+}
+
 require_once 'apps/user_openid/user_openid.php';
 
 OC_APP::addSettingsPage( array( "id" => "user_openid_settings", 'order'=>1, "href" => OC_HELPER::linkTo( "user_openid", "settings.php" ), "name" => "OpenID"));