Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove reference magic #25844

Merged
merged 1 commit into from
Aug 18, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions apps/files_external/lib/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -194,9 +194,9 @@ private static function prepareMountPointEntry(StorageConfig $storage, $isPerson
*/
public static function setUserVars($user, $input) {
if (is_array($input)) {
foreach ($input as &$value) {
foreach ($input as $key => $value) {
if (is_string($value)) {
$value = str_replace('$user', $user, $value);
$input[$key] = str_replace('$user', $user, $value);
}
}
} else {
Expand All @@ -220,8 +220,8 @@ public static function getBackendStatus($class, $options, $isPersonal, $testOnly
if (self::$skipTest) {
return StorageNotAvailableException::STATUS_SUCCESS;
}
foreach ($options as &$option) {
$option = self::setUserVars(OCP\User::getUser(), $option);
foreach ($options as $key => $option) {
$option[$key] = self::setUserVars(OCP\User::getUser(), $option);
}
if (class_exists($class)) {
try {
Expand Down