From e18a8b6ee36269f5cd5545f3b348ee6e06d7689f 2017-07-01 02:07:14 From: DarkMorford Date: 2017-07-01 02:07:14 Subject: [PATCH] Kill one more NULL bug. --- diff --git a/include/strip.php b/include/strip.php index a313eb3..8c49b7d 100644 --- a/include/strip.php +++ b/include/strip.php @@ -55,8 +55,8 @@ function insertstrip(&$strip) { function updatestrip(&$strip) { global $dbConnection; - $strip->book = ($strip->book === '') ? 'NULL' : (int)$strip->book; - $strip->page = ($strip->page === '') ? 'NULL' : (int)$strip->page; + $strip->book = ($strip->book === '') ? NULL : (int)$strip->book; + $strip->page = ($strip->page === '') ? NULL : (int)$strip->page; $dbConnection->beginTransaction();