summaryrefslogtreecommitdiffstats
path: root/lib/class/artist.class.php
diff options
context:
space:
mode:
authormomo-i <momo-i@ampache>2010-07-30 00:11:07 +0000
committermomo-i <momo-i@ampache>2010-07-30 00:11:07 +0000
commitbb8900e6c44bcc7872d00db4de3c1b36ce9a5d6e (patch)
treec33f7965f634a0a2d97f9a8f6ed2a82fb9b2e526 /lib/class/artist.class.php
parent720dd019a0fa5d529cf41e58dff27a9cc123c5f7 (diff)
downloadampache-bb8900e6c44bcc7872d00db4de3c1b36ce9a5d6e.tar.gz
ampache-bb8900e6c44bcc7872d00db4de3c1b36ce9a5d6e.tar.bz2
ampache-bb8900e6c44bcc7872d00db4de3c1b36ce9a5d6e.zip
Check cURL before install.
if cURL have not installed, get_like() should be return false.
Diffstat (limited to 'lib/class/artist.class.php')
-rw-r--r--lib/class/artist.class.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/class/artist.class.php b/lib/class/artist.class.php
index e6b5bda9..1009591c 100644
--- a/lib/class/artist.class.php
+++ b/lib/class/artist.class.php
@@ -146,6 +146,12 @@ class Artist extends database_object {
} // get_albums
public function get_like() {
+
+ // Are you compiling with cURL?
+ if (!check_php_curl()) {
+ return false;
+ }
+
$result = array();
$lastfm_api_key = Config::get('lastfm_api_key');