X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=blobdiff_plain;f=include%2Ftimezones%2Fcheck.php;h=26ff90abb0ce712b1caebc413b7717f3351d4091;hp=78002f6e708f1eccff5070a8e195cac0a4158b1d;hb=0693dd5b7fc85f38d9f81b1e3fff93b53091499c;hpb=2d3a630bc46939b37955137a6fff94720e90d59c;ds=sidebyside diff --git a/include/timezones/check.php b/include/timezones/check.php index 78002f6e..26ff90ab 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