Added edit validation
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user