mirror of
https://github.com/pikami/palm-paste.git
synced 2025-02-19 18:56:32 +00:00
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…
x
Reference in New Issue
Block a user