diff options
author | Jesús <heckyel@hyperbola.info> | 2019-05-24 14:35:56 -0500 |
---|---|---|
committer | Jesús <heckyel@hyperbola.info> | 2019-05-24 14:35:56 -0500 |
commit | cef43634a9009d08ab1bbea4121e7ea2ea789bd0 (patch) | |
tree | fc8624c147a82e68175d6e9373a102c26de4e005 | |
parent | 78859d3db00820f98e67250253d68849cae85a90 (diff) | |
download | ytlibre-cef43634a9009d08ab1bbea4121e7ea2ea789bd0.tar.lz ytlibre-cef43634a9009d08ab1bbea4121e7ea2ea789bd0.tar.xz ytlibre-cef43634a9009d08ab1bbea4121e7ea2ea789bd0.zip |
relax function valida URL
-rw-r--r-- | tools/init.php | 6 |
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 ); |