Browse Source

php - correct shift php

master
kanoi 10 years ago
parent
commit
0e27bd2d47
  1. 4
      pool/page_shifts.php

4
pool/page_shifts.php

@ -31,12 +31,12 @@ function doshifts($data, $user)
$shifname = $ans['shift:'.$i]; $shifname = $ans['shift:'.$i];
$shif = preg_replace(array('/^.* to /','/^.*fin: /'), '', $shifname); $shif = preg_replace(array('/^.* to /','/^.*fin: /'), '', $shifname);
$ablock = false; $ablock = false;
if (preg_match('/to.*Block.* fin/', $shifname) === true) if (preg_match('/to.*Block.* fin/', $shifname) == 1)
$ablock = true; $ablock = true;
else else
{ {
$shifex = $ans['endmarkextra:'.$i]; $shifex = $ans['endmarkextra:'.$i];
if (preg_match('/Block .* fin/', $shifex) === true) if (preg_match('/Block .* fin/', $shifex) == 1)
$ablock = true; $ablock = true;
} }
if ($ablock === true) if ($ablock === true)

Loading…
Cancel
Save