mirror of
https://github.com/pi-hole/web.git
synced 2026-04-24 18:59:48 +01:00
Fix undefined variable $timestamp
This commit is contained in:
@@ -42,14 +42,14 @@ $FTL_current = exec("pihole-FTL version");
|
||||
$versionfile = "../versions";
|
||||
|
||||
$check_version = false;
|
||||
$date = date_create();
|
||||
$timestamp = date_timestamp_get($date);
|
||||
|
||||
// Check version if version buffer file does not exist
|
||||
if(is_readable($versionfile))
|
||||
{
|
||||
// Obtain latest time stamp from buffer file
|
||||
$versions = explode(",",file_get_contents($versionfile));
|
||||
$date = date_create();
|
||||
$timestamp = date_timestamp_get($date);
|
||||
|
||||
// Is last check for updates older than 30 minutes?
|
||||
if($timestamp >= intval($versions[0]) + 1800)
|
||||
|
||||
Reference in New Issue
Block a user