mirror of
https://github.com/claudehohl/Stikked.git
synced 2025-04-26 04:51:08 -05:00
postgre fix
This commit is contained in:
parent
c37b3046f7
commit
b13d199928
@ -54,6 +54,7 @@ class Main extends CI_Controller
|
|||||||
) ,
|
) ,
|
||||||
'session_data' => array(
|
'session_data' => array(
|
||||||
'type' => 'TEXT',
|
'type' => 'TEXT',
|
||||||
|
'null' => TRUE,
|
||||||
) ,
|
) ,
|
||||||
);
|
);
|
||||||
$this->dbforge->add_field($fields);
|
$this->dbforge->add_field($fields);
|
||||||
@ -106,6 +107,7 @@ class Main extends CI_Controller
|
|||||||
'type' => 'TINYINT',
|
'type' => 'TINYINT',
|
||||||
'constraint' => 1,
|
'constraint' => 1,
|
||||||
'unsigned' => TRUE,
|
'unsigned' => TRUE,
|
||||||
|
'default' => 0,
|
||||||
) ,
|
) ,
|
||||||
'snipurl' => array(
|
'snipurl' => array(
|
||||||
'type' => 'VARCHAR',
|
'type' => 'VARCHAR',
|
||||||
|
@ -39,7 +39,6 @@ class Pastes extends CI_Model
|
|||||||
|
|
||||||
function createPaste()
|
function createPaste()
|
||||||
{
|
{
|
||||||
$data['id'] = NULL;
|
|
||||||
$data['created'] = time();
|
$data['created'] = time();
|
||||||
|
|
||||||
//this is SO evil… saving the «raw» data with htmlspecialchars :-( (but I have to leave this, because of backwards-compatibility)
|
//this is SO evil… saving the «raw» data with htmlspecialchars :-( (but I have to leave this, because of backwards-compatibility)
|
||||||
@ -94,7 +93,7 @@ class Pastes extends CI_Model
|
|||||||
|
|
||||||
if ($this->input->post('expire') == 0)
|
if ($this->input->post('expire') == 0)
|
||||||
{
|
{
|
||||||
$data['expire'] = '0000-00-00 00:00:00';
|
$data['expire'] = 0;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user