PHP7.0+ Changes to integer handling: Invalid octal literals.

This commit is contained in:
lopar 2020-06-23 22:30:20 +03:00
parent 5124dedfe1
commit 0be53f775f

View File

@ -1947,7 +1947,7 @@ function star_sign($month, $day)
$day = (int)sprintf("%02d", mt_rand(1, 29));
}
$signs = ["10", "11", "12", "01", "02", "03", "04", "05", "06", "07", "08", "09"];
$signsstart = [01 => 21, 02 => 20, 03 => 20, 04 => 20, 05 => 20, 06 => 20, 07 => 21, 08 => 22, 09 => 23, 10 => 23, 11 => 23, 12 => 23];
$signsstart = ['01' => 21, '02' => 20, '03' => 20, '04' => 20, '05' => 20, '06' => 20, '07' => 21, '08' => 22, '09' => 23, '10' => 23, '11' => 23, '12' => 23];
return $day < $signsstart[$month + 1] ? $signs[$month - 1] : $signs[$month % 12];
}