Added edit validation

This commit is contained in:
2017-09-06 11:19:44 +07:00
parent a34ce9d0eb
commit 01ce24fd39
2 changed files with 12 additions and 6 deletions

View File

@@ -61,7 +61,6 @@ class Posts
$status = 'admin';
}
// $x = 0;
for ($i=0; $i < count($posts); $i++) {
$posts[$i]['content'] = preg_replace('/[\r]/', '', $posts[$i]['content']);
$posts[$i]['content'] = preg_replace('/[\n]/', "<br/>", $posts[$i]['content']);
@@ -109,7 +108,7 @@ class Posts
$editor_now = Session::get('userid');
$date = new \DateTime();
$timestamp = $date->format("Y/m/d H:i:s");
$timestamp = $date->format("Y-m-d");
View::render(
'Data/edit_pengumuman.html',