Fixing up my mistake from the last paste

This commit is contained in:
pikami 2016-06-16 14:37:18 +00:00
parent b59f2f0596
commit 4c1f18c593
1 changed files with 1 additions and 1 deletions

View File

@ -8,7 +8,7 @@ if(isset($uid)){
$stmt = $conn->query('SELECT * FROM pastes WHERE uid="'.$uid.'"');
if($result = $stmt->fetch(PDO::FETCH_ASSOC)){
$conn = null;
if($result["expire"]<time()){
if($result["expire"]!=0 && $result["expire"]<time()){
//This paste is expired but not removed
include "cronjob.php";
RemoveExpiredPastes();