This commit is contained in:
Julián Gutiérrez 2016-07-19 15:06:32 +02:00
parent d8930af5ee
commit 039537ebe2

View File

@ -57,7 +57,7 @@ class CryptKey
{
$keyPath = sys_get_temp_dir() . '/' . sha1($key) . '.key';
if (!file_exists($keyPath) && !mkdir($keyPath)) {
if (!file_exists($keyPath) && !touch($keyPath)) {
throw new \RuntimeException('"%s" key file could not be created', $keyPath);
}