Merge pull request #4218 from owncloud/newdata
Fix potential undefined variable in Scanner
This commit is contained in:
commit
3d76530628
|
@ -108,10 +108,10 @@ class Scanner extends BasicEmitter {
|
|||
// Only update metadata that has changed
|
||||
$newData = array_diff($data, $cacheData);
|
||||
}
|
||||
}
|
||||
if (!empty($newData)) {
|
||||
$this->cache->put($file, $newData);
|
||||
}
|
||||
}
|
||||
return $data;
|
||||
}
|
||||
return null;
|
||||
|
|
Loading…
Reference in New Issue