From 45fabec890f5eb83472ac1978064630a73a7d5cb Mon Sep 17 00:00:00 2001 From: "Hahn Axel (hahn)" <axel.hahn@iml.unibe.ch> Date: Mon, 3 Oct 2022 10:31:35 +0200 Subject: [PATCH] fix empty part; fix repo url --- src/tinyrouter.class.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/tinyrouter.class.php b/src/tinyrouter.class.php index be9155c..c0c7af4 100644 --- a/src/tinyrouter.class.php +++ b/src/tinyrouter.class.php @@ -1,7 +1,7 @@ <?php /** * - * Axels first router + * IML TINY ROUTER * * --------------------------------------------------------------------------------<br> * <br> @@ -15,9 +15,9 @@ * SERVICING, REPAIR OR CORRECTION.<br> * <br> * --------------------------------------------------------------------------------<br> - * @version 1.1 + * @version 1.2 * @author Axel Hahn - * @link https://github.com/iml-it/appmonitor + * @link https://git-repo.iml.unibe.ch/iml-open-source/tinyrouter-php-class * @license GPL * @license http://www.gnu.org/licenses/gpl-3.0.html GPL 3.0 * @package - @@ -69,7 +69,7 @@ class tinyrouter{ $bFoundRoute=false; foreach($aParts as $sPart){ // detect @varname or @varname:regex in a routing - if($sPart[0]=="@"){ + if(isset($sPart[0]) && $sPart[0]=="@"){ $sValue=$aReqParts[$iPart]; preg_match('/\@([a-z]*):(.*)/', $sPart, $match); -- GitLab