From f185cadba1740cbc0840fcd0a6fb343b573f2705 Mon Sep 17 00:00:00 2001 From: Joe Presbrey Date: Sun, 15 Apr 2007 00:43:27 +0000 Subject: [PATCH] fixed handler processing for new argv git-svn-id: svn://presbrey.mit.edu/php/lib@125 a142d4bd-2cfb-0310-9673-cb33a7e74f58 --- lib/joe/site.lib.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/joe/site.lib.php b/lib/joe/site.lib.php index 743c061..e780e8d 100755 --- a/lib/joe/site.lib.php +++ b/lib/joe/site.lib.php @@ -28,9 +28,9 @@ class Site { $page = new $MODULE($this, $METHOD); $page->Start(); $handlers = $page->get_handlers($METHOD); - foreach($handlers as $handler) { - if (isset($this->argv[$handler]) && - false !== $page->Run($handler)) { + foreach($this->argv as $argk=>$argv) { + if (in_array($argk, $handlers) && + false !== $page->Run($argk)) { $nCalls++; } } -- 2.45.0