mirror of
https://github.com/pikami/palm-paste.git
synced 2025-04-20 16:58:47 +01: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.'"');
|
$stmt = $conn->query('SELECT * FROM pastes WHERE uid="'.$uid.'"');
|
||||||
if($result = $stmt->fetch(PDO::FETCH_ASSOC)){
|
if($result = $stmt->fetch(PDO::FETCH_ASSOC)){
|
||||||
$conn = null;
|
$conn = null;
|
||||||
if($result["expire"]<time()){
|
if($result["expire"]!=0 && $result["expire"]<time()){
|
||||||
//This paste is expired but not removed
|
//This paste is expired but not removed
|
||||||
include "cronjob.php";
|
include "cronjob.php";
|
||||||
RemoveExpiredPastes();
|
RemoveExpiredPastes();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user