Rename variable to something more appropriate.

This commit is contained in:
ringmaster 2014-05-16 12:12:27 -04:00
parent 645e7035a4
commit fdf26c5a3f
1 changed files with 3 additions and 3 deletions

View File

@ -248,9 +248,9 @@ class Scanner extends BasicEmitter {
$removedChildren = \array_diff($existingChildren, $newChildren);
foreach ($removedChildren as $childName) {
$child = ($path) ? $path . '/' . $childName : $childName;
$addToCache = true;
\OC_Hook::emit('Scanner', 'removeFromCache', array('file' => $child, 'removeFromCache' => &$addToCache));
if($addToCache) {
$removeFromCache = true;
\OC_Hook::emit('Scanner', 'removeFromCache', array('file' => $child, 'removeFromCache' => &$removeFromCache));
if($removeFromCache) {
$this->cache->remove($child);
}
}