From f7e777f7d2fc330dbf55c0190b5e0071c8f997ac Mon Sep 17 00:00:00 2001 From: Robin McCorkell Date: Mon, 12 May 2014 23:28:26 +0100 Subject: Fix various code errors detected by Scrutinizer Fixed: - An error with a misplaced bracket in lib/private/util.php - An error with an incorrect function being called in lib/public/contacts.php --- lib/private/util.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/private') diff --git a/lib/private/util.php b/lib/private/util.php index 1c3177af435..f76ee7b338a 100755 --- a/lib/private/util.php +++ b/lib/private/util.php @@ -1113,7 +1113,7 @@ class OC_Util { curl_setopt($curl, CURLOPT_PROXYUSERPWD, OC_Config::getValue('proxyuserpwd')); } - if (ini_get('open_basedir') === '' && ini_get('safe_mode' === 'Off')) { + if (ini_get('open_basedir') === '' && ini_get('safe_mode') === 'Off') { curl_setopt($curl, CURLOPT_FOLLOWLOCATION, true); curl_setopt($curl, CURLOPT_MAXREDIRS, $max_redirects); $data = curl_exec($curl); -- cgit v1.2.3