diff --git a/lib/util.php b/lib/util.php
index dd3c3721a68d56d2b14412c41888b0467e14aecb..e7ba3dd3dfe23662297611425163ccc99cac1933 100755
--- a/lib/util.php
+++ b/lib/util.php
@@ -688,7 +688,7 @@ class OC_Util {
                 curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
                 curl_setopt($curl, CURLOPT_CONNECTTIMEOUT, 10);
                 curl_setopt($curl, CURLOPT_URL, $url);
-		curl_setopt($ch, CURLOPT_USERAGENT, "ownCloud Server Crawler");
+		curl_setopt($curl, CURLOPT_USERAGENT, "ownCloud Server Crawler");
                 $data = curl_exec($curl);
                 curl_close($curl);