aboutsummaryrefslogtreecommitdiff
path: root/app/class
diff options
context:
space:
mode:
Diffstat (limited to 'app/class')
-rw-r--r--app/class/controllerhome.php12
1 files changed, 11 insertions, 1 deletions
diff --git a/app/class/controllerhome.php b/app/class/controllerhome.php
index e177272..5a6d839 100644
--- a/app/class/controllerhome.php
+++ b/app/class/controllerhome.php
@@ -62,7 +62,17 @@ class Controllerhome extends Controller
public function search()
{
if(isset($_POST['id']) && !empty($_POST['id'])) {
- $this->routedirect('artread/', ['art' => $_POST['id']]);
+ if(isset($_POST['action'])) {
+ switch ($_POST['action']) {
+ case 'read':
+ $this->routedirect('artread/', ['art' => $_POST['id']]);
+ break;
+
+ case 'edit':
+ $this->routedirect('artedit', ['art' => $_POST['id']]);
+ break;
+ }
+ }
} else {
$this->routedirect('home');
}