MDL-38154 do not hardcode sha1 hash of empty string

This commit is contained in:
Petr Škoda 2013-02-25 10:10:57 +01:00
parent e029dff4cd
commit 18fa4f4745

View File

@ -1635,7 +1635,7 @@ class file_storage {
public function deleted_file_cleanup($contenthash) {
global $DB;
if ($contenthash === 'da39a3ee5e6b4b0d3255bfef95601890afd80709') {
if ($contenthash === sha1('')) {
// No need to delete empty content file with sha1('') content hash.
return;
}