From eb021b3384806a6118a09a3f8748ca33ce85fde5 Mon Sep 17 00:00:00 2001 From: Joe Presbrey Date: Thu, 19 Apr 2007 03:29:46 +0000 Subject: [PATCH] git-svn-id: svn://presbrey.mit.edu/php/lib@127 a142d4bd-2cfb-0310-9673-cb33a7e74f58 --- lib/joe/site.lib.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/lib/joe/site.lib.php b/lib/joe/site.lib.php index 1670ed1..cf09c22 100755 --- a/lib/joe/site.lib.php +++ b/lib/joe/site.lib.php @@ -27,10 +27,11 @@ class Site { if (class_exists($MODULE)) { $page = new $MODULE($this, $METHOD); $page->Start(); - $handlers = $page->get_handlers($METHOD); - foreach($this->ARGV as $argk=>$argv) { - if (in_array($argk, $handlers) && - false !== $page->Run($argk)) { + $handlers = array_intersect( + $page->get_handlers($METHOD), + array_keys($this->ARGV)); + foreach($handlers as $handler) { + if (false !== $page->Run($handler)) { $nCalls++; } } -- 2.45.0