summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorthomas <thomas@thomas-VirtualBox.(none)>2012-11-15 20:46:17 +0100
committerthomas <thomas@thomas-VirtualBox.(none)>2012-11-15 20:46:17 +0100
commitd2047a00cf0fa7383a6dd1834d3d3500f58b1931 (patch)
treecaf0c60e7838b2cf096369b7d0d3f5bfb1d4bf67
parent40dd5ae61c8c62cfcda13bd8f8a3b67ff3c980e0 (diff)
downloadnextcloud-server-d2047a00cf0fa7383a6dd1834d3d3500f58b1931.tar.gz
nextcloud-server-d2047a00cf0fa7383a6dd1834d3d3500f58b1931.zip
Remove parentheses in return, modify description, and fix a mistake
-rwxr-xr-xlib/util.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/util.php b/lib/util.php
index 497b7879227..6a8fab0da26 100755
--- a/lib/util.php
+++ b/lib/util.php
@@ -646,7 +646,7 @@ class OC_Util {
/**
* @Brief Get file content via curl.
* @param string $url Url to get content
- * @return string of the response
+ * @return string of the response or false on error
* This function get the content of a page via curl, if curl is enabled.
* If not, file_get_element is used.
*/
@@ -663,7 +663,7 @@ class OC_Util {
curl_setopt($curl, CURLOPT_URL, $url);
$data = curl_exec($curl);
- curl_close($data);
+ curl_close($curl);
} else {
@@ -678,7 +678,7 @@ class OC_Util {
}
- return($data);
+ return $data;
}
}