mirror of
https://github.com/claudehohl/Stikked.git
synced 2025-04-25 20:41:20 -05:00
parent
dad91e16f2
commit
e3d4810cf5
@ -622,8 +622,7 @@ class Pastes extends CI_Model
|
|||||||
|
|
||||||
if ($now > $stamp)
|
if ($now > $stamp)
|
||||||
{
|
{
|
||||||
$this->db->where('id', $row['id']);
|
$this->delete_paste($row['pid']);
|
||||||
$this->db->delete('pastes');
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
@ -633,6 +632,10 @@ class Pastes extends CI_Model
|
|||||||
{
|
{
|
||||||
$this->db->where('pid', $pid);
|
$this->db->where('pid', $pid);
|
||||||
$this->db->delete('pastes');
|
$this->db->delete('pastes');
|
||||||
|
|
||||||
|
// delete from trending
|
||||||
|
$this->db->where('paste_id', $pid);
|
||||||
|
$this->db->delete('trending');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user