Skip to content

Commit

Permalink
Update CiteMap.php
Browse files Browse the repository at this point in the history
  • Loading branch information
cyberpower678 committed Sep 27, 2023
1 parent 17fb869 commit 1c849f5
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions app/src/Core/CiteMap.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'] ) ) {
Expand Down Expand Up @@ -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':
Expand Down

0 comments on commit 1c849f5

Please sign in to comment.