File tree 1 file changed +10
-9
lines changed
1 file changed +10
-9
lines changed Original file line number Diff line number Diff line change @@ -81,21 +81,22 @@ function endsWith( $haystack, $needle ) {
81
81
<p><?php echo $ description ; ?> </p>
82
82
<p><strong>URL:</strong> <?php
83
83
$ has_dev = false ;
84
- foreach ( $ site ['hosts ' ] as $ host ) {
85
-
86
- ?>
87
- <a href="<?php echo 'http:// ' .$ host ; ?> " target="_blank"><?php echo 'http:// ' .$ host ; ?> </a>,
88
- <?php
89
- if ( $ has_dev ){
90
- continue ;
84
+ if ( !empty ( $ site ['hosts ' ] ) {
85
+ foreach ( $ site ['hosts ' ] as $ host ) {
86
+ ?>
87
+ <a href="<?php echo 'http:// ' .$ host ; ?> " target="_blank"><?php echo 'http:// ' .$ host ; ?> </a>,
88
+ <?php
89
+ if ( $ has_dev ){
90
+ continue ;
91
+ }
92
+ $ has_dev = endsWith ( $ host , '.dev ' );
91
93
}
92
- $ has_dev = endsWith ( $ host , '.dev ' );
93
94
}
94
95
?> <br/>
95
96
<strong>Folder:</strong> <code>www/<?php echo $ name ;?> </code></p>
96
97
<?php if ( $ has_dev ) {
97
98
?>
98
- <p class="warning"><strong>Warning:</strong> the .dev TLD is owned by Google, you should migrate to .test</p>
99
+ <p class="warning"><strong>Warning:</strong> the <code> .dev</code> TLD is owned by Google, you should migrate to <code> .test</code> </p>
99
100
<?php
100
101
}
101
102
?>
You can’t perform that action at this time.
0 commit comments