aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesús <heckyel@hyperbola.info>2019-05-24 14:35:56 -0500
committerJesús <heckyel@hyperbola.info>2019-05-24 14:35:56 -0500
commitcef43634a9009d08ab1bbea4121e7ea2ea789bd0 (patch)
treefc8624c147a82e68175d6e9373a102c26de4e005
parent78859d3db00820f98e67250253d68849cae85a90 (diff)
downloadytlibre-cef43634a9009d08ab1bbea4121e7ea2ea789bd0.tar.lz
ytlibre-cef43634a9009d08ab1bbea4121e7ea2ea789bd0.tar.xz
ytlibre-cef43634a9009d08ab1bbea4121e7ea2ea789bd0.zip
relax function valida URL
-rw-r--r--tools/init.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/init.php b/tools/init.php
index 162350c..f3c39ce 100644
--- a/tools/init.php
+++ b/tools/init.php
@@ -1,11 +1,11 @@
<?php
-function url_exists( $baselink = NULL ) {
- if( empty( $baselink ) ){
+function url_exists( $url = NULL ) {
+ if( empty( $url ) ){
return false;
}
- $ch = curl_init( $baselink );
+ $ch = curl_init( $url );
// Set a timeout
curl_setopt( $ch, CURLOPT_TIMEOUT, 5 );