Use single quotes

This commit is contained in:
Roeland Jago Douma 2015-01-27 16:15:03 +01:00
parent ea1f726b7d
commit 4801d9c02a

View file

@ -23,18 +23,18 @@ class Capabilities {
$config = \OC::$server->getConfig();
$res = array();
if ($config->getAppValue('core', 'shareapi_allow_links', 'yes') === "yes") {
$res["allow_links"] = true;
if ($config->getAppValue('core', 'shareapi_allow_links', 'yes') === 'yes') {
$res['allow_links'] = true;
if ($config->getAppValue('core', 'shareapi_enforce_links_password', 'yes') === "yes") {
$res["enforce_links_password"] = true;
if ($config->getAppValue('core', 'shareapi_enforce_links_password', 'yes') === 'yes') {
$res['enforce_links_password'] = true;
}
if ($config->getAppValue('core', 'shareapi_allow_public_upload', 'yes') === "yes") {
$res["allow_public_upload"] = true;
if ($config->getAppValue('core', 'shareapi_allow_public_upload', 'yes') === 'yes') {
$res['allow_public_upload'] = true;
}
$res = array("sharing" => $res);
$res = array('sharing' => $res);
}
return new \OC_OCS_Result(array(