From 22cb93d7446eac3ed1d01cfe60cf1d46b794e0b2 Mon Sep 17 00:00:00 2001 From: Ubasic Date: Tue, 8 Apr 2014 22:27:46 +0800 Subject: [PATCH] Fix. when add router to stacks in wrong in_array arguments --- lib/Pagon/App.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Pagon/App.php b/lib/Pagon/App.php index 989346f..b51d2f3 100644 --- a/lib/Pagon/App.php +++ b/lib/Pagon/App.php @@ -754,7 +754,7 @@ public function run() // Start buffer if ($this->injectors['buffer']) ob_start(); - if (!in_array(array('', $this->router, array()), $this->injectors['stacks'])) $this->injectors['stacks'][] = $this->router; + if (!in_array($this->router, $this->injectors['stacks'])) $this->injectors['stacks'][] = $this->router; // Emit "middleware" event $this->emit('middleware');