forked from halo-battle/game
Another bunch of PHP 7.2 fixes
This commit is contained in:
parent
164a7ab020
commit
f56a2ef140
7 changed files with 11 additions and 11 deletions
|
|
@ -40,7 +40,7 @@ if (is_file($filename)) {
|
|||
$handle = fopen($filename, "r");
|
||||
while (!feof($handle)) {
|
||||
$r = fgets($handle);
|
||||
if (ereg(';', $r)) $last = $r;
|
||||
if (preg_match('#;#', $r)) $last = $r;
|
||||
}
|
||||
fclose($handle);
|
||||
$calc = $last = explode(';', $last);
|
||||
|
|
@ -53,7 +53,7 @@ for($i = 6; $i >= 0; $i--){
|
|||
$handle = fopen($filename, "r");
|
||||
while (!feof($handle)) {
|
||||
$r = fgets($handle);
|
||||
if (ereg(';', $r)) $last = $r;
|
||||
if (preg_match('#;#', $r)) $last = $r;
|
||||
}
|
||||
fclose($handle);
|
||||
$last = explode(';', $last);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue