From 80672095ec58a992f468bd4780ce6946117d82b2 Mon Sep 17 00:00:00 2001 From: Bertrand Jacquin Date: Sun, 28 Apr 2013 04:34:29 +0000 Subject: [PATCH] www/ss: Don't try to get snapshot timestamp if it don't exist SVN revision: 84522 --- ss/display.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ss/display.php b/ss/display.php index e0b269bc..7bc3f217 100644 --- a/ss/display.php +++ b/ss/display.php @@ -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());