X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=blobdiff_plain;f=include%2Ftimezones%2Fcheck.php;h=8c5e8088c085371ae3178cfc8d2ca404bb6a8e3f;hp=78002f6e708f1eccff5070a8e195cac0a4158b1d;hb=bb40a9c1d9766ba4212a3350fbd702af3e2d06ee;hpb=2d3a630bc46939b37955137a6fff94720e90d59c diff --git a/include/timezones/check.php b/include/timezones/check.php index 78002f6..8c5e808 100644 --- a/include/timezones/check.php +++ b/include/timezones/check.php @@ -1,24 +1,10 @@ $TzData) { + if (isset($TzData['NAME']) && empty($TzData['NAME'])) { + echo ' '.$TzKey."\n"; + $error = true; + } +} +if (! $error) { + echo " none. Looking good\n"; +} else { + // error is fatal. NAME should not be empty string. +} + +echo "\n"; + /** Test TZ subkeys with UCT/UTC/GMT offsets */ $error = false; echo "Testing TZ subkeys with UCT/UTC/GMT offsets:\n" @@ -212,4 +215,3 @@ if (! $error) { echo "\n"; echo "Done!\n"; -?> \ No newline at end of file