www/ss: Don't try to get snapshot timestamp if it don't exist

SVN revision: 84522
This commit is contained in:
Bertrand Jacquin 2013-04-28 04:34:29 +00:00
parent a31d0addb7
commit 80672095ec
1 changed files with 2 additions and 1 deletions

View File

@ -21,7 +21,8 @@
$auth_file = $_SERVER["DOCUMENT_ROOT"] . "/ss/ip-" . $img;
$auth_expire = 60 * 60; // You have one hour to remove your content
if (time() - filemtime($auth_file) < $auth_expire)
if (file_exists($auth_file) &&
time() - filemtime($auth_file) < $auth_expire)
{
$auth = md5($img . get_ip());