mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-05 19:42:38 +02:00
Remove warnings
This commit is contained in:
parent
38e6881a2f
commit
2d0e4a0850
1 changed files with 2 additions and 2 deletions
|
@ -1367,7 +1367,7 @@ function getVideosURL_V2($fileName, $recreateCache = false) {
|
|||
if (in_array($parts['extension'], $image) && filesize($file) < 1000 && !preg_match("/Dummy File/i", file_get_contents($file))) {
|
||||
continue;
|
||||
}
|
||||
|
||||
$resolution = '';
|
||||
if (preg_match("/{$cleanfilename}(_.+)[.]{$parts['extension']}$/", $file, $matches)) {
|
||||
$resolution = $matches[1];
|
||||
} else {
|
||||
|
@ -5280,7 +5280,7 @@ function getMySQLDate() {
|
|||
|
||||
function _file_put_contents($filename, $data, $flags = 0, $context = null) {
|
||||
make_path($filename);
|
||||
if (!is_string($value)) {
|
||||
if (!is_string($data)) {
|
||||
$data = _json_encode($data);
|
||||
}
|
||||
return file_put_contents($filename, $data, $flags, $context);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue