Update recordings.php

Prevent a warning by checking if the file exists.
This commit is contained in:
FusionPBX
2017-01-26 09:42:33 -07:00
committed by GitHub
parent 3a23176948
commit bbf902a104

View File

@@ -361,12 +361,14 @@
if (file_exists($file_name)) {
$file_size = filesize($file_name);
$file_size = byte_convert($file_size);
$file_date = date("M d, Y H:i:s", filemtime($file_name));
}
else {
$file_size = '';
$file_date = '';
}
echo " <td valign='top' class='".$row_style[$c]."' style='text-align: center; white-space: nowrap;'>".$file_size."</td>\n";
$file_date = date("M d, Y H:i:s", filemtime($file_name));
echo " <td valign='top' class='".$row_style[$c]."' style='text-align: right;'>".$file_date."</td>\n";
}
else {