mirror of https://github.com/pikami/palm-paste.git
Fixing up my mistake from the last paste
This commit is contained in:
parent
b59f2f0596
commit
4c1f18c593
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue