Get the id before using it

This commit is contained in:
Joas Schilling 2015-03-09 19:27:02 +01:00 committed by Thomas Müller
parent 3115d66d60
commit 2747a83a49
1 changed files with 2 additions and 1 deletions

View File

@ -259,8 +259,9 @@ class Cache {
}
// The file was created in the mean time
$id = $this->getId($file);
$this->update($id, $data);
return $this->getId($file);
return $id;
}
}