From 1c849f57e85f0cf5dd073142b2cf0097b5181eb5 Mon Sep 17 00:00:00 2001 From: cyberpower678 Date: Wed, 27 Sep 2023 16:25:00 -0400 Subject: [PATCH] Update CiteMap.php --- app/src/Core/CiteMap.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/app/src/Core/CiteMap.php b/app/src/Core/CiteMap.php index 8897a215..2f81c722 100644 --- a/app/src/Core/CiteMap.php +++ b/app/src/Core/CiteMap.php @@ -1371,6 +1371,7 @@ protected static function getDeadValues( $configArray, $moduleCode ) { //if( !isset( $params['unknown'] ) ) $params['unknown'] = $params['dead']; } } + if( empty( $params['unknown'] ) ) $params['unknown'] = []; $returnArray['__PARAMS__'] = $params; if( isset( $configArray['defaults']['UrlStatus'] ) || isset( $configArray['defaults']['DeadURL'] ) ) { if( isset( $configArray['defaults']['UrlStatus'] ) ) { @@ -1407,9 +1408,9 @@ protected static function buildMasterMapString( $mapValues ) { $keyword = "{{$type}:automatic}"; } elseif( $type == 'deadvalues' ) { $keyword = "{deadvalues:"; - $keyword .= @implode( ';;', $values['__PARAMS__']['dead'] ) . ':'; - $keyword .= @implode( ';;', $values['__PARAMS__']['live'] ) . ':'; - $keyword .= @implode( ';;', $values['__PARAMS__']['unknown'] ) . ':'; + $keyword .= implode( ';;', $values['__PARAMS__']['dead'] ) . ':'; + $keyword .= implode( ';;', $values['__PARAMS__']['live'] ) . ':'; + $keyword .= implode( ';;', $values['__PARAMS__']['unknown'] ) . ':'; unset( $values['__PARAMS__'] ); switch( $values['__DEFAULT__'] ) { case 'dead':