From: Joe Presbrey Date: Sun, 15 Apr 2007 00:43:27 +0000 (+0000) Subject: fixed handler processing for new argv X-Git-Url: http://andersk.mit.edu/gitweb/sql-web.git/commitdiff_plain/f185cadba1740cbc0840fcd0a6fb343b573f2705 fixed handler processing for new argv git-svn-id: svn://presbrey.mit.edu/php/lib@125 a142d4bd-2cfb-0310-9673-cb33a7e74f58 --- 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++; } }