diff --git a/includes/Models/Paste.php b/includes/Models/Paste.php index a21c5ed..e64988c 100644 --- a/includes/Models/Paste.php +++ b/includes/Models/Paste.php @@ -16,6 +16,7 @@ class Paste extends Model { 'visible' => 'integer', 'encrypt' => 'boolean' ]; + public $timestamps = false; public function user() { return $this->belongsTo(User::class); diff --git a/index.php b/index.php index 4b949f2..c1158e0 100644 --- a/index.php +++ b/index.php @@ -81,7 +81,6 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') { $error = validatePasteFields(); - if ($error !== null) { goto OutPut; } @@ -93,7 +92,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') { goto OutPut; } - $tags = Tag::parseTagInput($tag_input); + $tags = Tag::parseTagInput($_POST['tag_input']); if (count($tags) < 1) { $error = 'You must specify at least 1 tag.'; @@ -145,6 +144,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') { 'code' => $paste_code, 'expiry' => $expires, 'password' => $paste_password, + 'updated_at' => date_create(), 'ip' => $ip ]); diff --git a/theme/bulma/login.php b/theme/bulma/login.php index 1707faf..a950e22 100644 --- a/theme/bulma/login.php +++ b/theme/bulma/login.php @@ -67,7 +67,7 @@