Fixed issue #295

This commit is contained in:
xZero 2015-08-19 21:38:20 +02:00
parent 244f1443f3
commit 768ba95606

View File

@ -925,6 +925,7 @@ class Pastes extends CI_Model
$this->load->library('process');
$this->db->order_by('id', 'RANDOM');
$this->db->limit(1);
$this->db->where('private', '0');
$query = $this->db->get('pastes');
if ($query->num_rows() > 0)