1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-06 03:50:04 +02:00

Avoid warnings

This commit is contained in:
Daniel 2021-07-07 15:01:40 -03:00
parent cd5425102a
commit 5655efae4e

View file

@ -514,7 +514,7 @@ abstract class ObjectYPT implements ObjectInterface {
$tmpDir = fixPath($tmpDir);
make_path($tmpDir);
if (!file_exists($tmpDir . "index.html") && is_writable($tmpDir)) {// to avoid search into the directory
@file_put_contents($tmpDir . "index.html", time());
_file_put_contents($tmpDir . "index.html", time());
}
$_getCacheDir[$filename] = $tmpDir;