1
0
mirror of https://github.com/php/web-php.git synced 2026-03-23 23:02:13 +01:00

Remove duplicated !isset($var) (#570)

This commit is contained in:
Kamil Tekiela
2022-06-28 12:45:50 +01:00
committed by GitHub
parent 6f06ab9a28
commit 4e251d6993
3 changed files with 4 additions and 4 deletions

View File

@@ -86,8 +86,8 @@ if ($cm && $cy && !checkdate($cm,1,$cy)) {
}
// Give defaults for the month and day values if they were invalid
if (!isset($cm) || $cm == 0) { $cm = date("m"); }
if (!isset($cy) || $cy == 0) { $cy = date("Y"); }
if (empty($cm)) { $cm = date("m"); }
if (empty($cy)) { $cy = date("Y"); }
// Start of the month date
$date = mktime(0, 0, 1, $cm, 1, $cy);