From 0e27bd2d47e7ae268b2fddfc3dc4e7fd4b8a3532 Mon Sep 17 00:00:00 2001 From: kanoi Date: Wed, 11 Mar 2015 23:13:39 +1100 Subject: [PATCH] php - correct shift php --- pool/page_shifts.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pool/page_shifts.php b/pool/page_shifts.php index 1230d380..b83d3ec6 100644 --- a/pool/page_shifts.php +++ b/pool/page_shifts.php @@ -31,12 +31,12 @@ function doshifts($data, $user) $shifname = $ans['shift:'.$i]; $shif = preg_replace(array('/^.* to /','/^.*fin: /'), '', $shifname); $ablock = false; - if (preg_match('/to.*Block.* fin/', $shifname) === true) + if (preg_match('/to.*Block.* fin/', $shifname) == 1) $ablock = true; else { $shifex = $ans['endmarkextra:'.$i]; - if (preg_match('/Block .* fin/', $shifex) === true) + if (preg_match('/Block .* fin/', $shifex) == 1) $ablock = true; } if ($ablock === true)