From 5057aecc3610ce6bc4c2a90c68b9ce16edea4c54 Mon Sep 17 00:00:00 2001 From: KIMB-technologies Date: Sat, 23 Dec 2023 21:24:02 +0100 Subject: [PATCH] Fix comments --- php/classes/Data.php | 2 +- php/classes/Router.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/php/classes/Data.php b/php/classes/Data.php index 8fbd649..39a9505 100644 --- a/php/classes/Data.php +++ b/php/classes/Data.php @@ -103,7 +103,7 @@ private function addTypeToTable( int $tid, array $data ) : void{ $idd = $id + 1000 * $tid; $this->table['items'][$idd] = $d; $this->table['items'][$idd]['tid'] = $tid; - if( $id >= 999 ){ // only 999 per cat!! + if( $id >= 999 ){ // only 999 per type!! break; } } diff --git a/php/classes/Router.php b/php/classes/Router.php index ac64389..d19f6b8 100644 --- a/php/classes/Router.php +++ b/php/classes/Router.php @@ -86,7 +86,7 @@ public function handleGet(string $uri) : void { $this->out->addDir( 'No item found for this tID!', Config::RADIO_DOMAIN . '?go=initial'); } } - // list of categories (startpage) + // list of types (startpage) else{ // add local types foreach( $this->data->getTypes() as $tid => $name ){