1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-28 00:10:57 +01:00

STRICT_ALL_TABLES fix for a Herald column

Summary: Casting a PHP bool to a MySQL `TINYINT(1)`!

Test Plan: This broke during arc diff; with this patch, arc diff now works!

Reviewers: epriestley

Reviewed By: epriestley

CC: aran, Korvin

Differential Revision: https://secure.phabricator.com/D4999
This commit is contained in:
Edward Speyer 2013-02-18 16:58:35 +00:00
parent 4f2aa99248
commit 16accb591c

View file

@ -110,7 +110,7 @@ final class HeraldEngine {
assert_instances_of($effects, 'HeraldEffect');
assert_instances_of($rules, 'HeraldRule');
$this->transcript->setDryRun($object instanceof HeraldDryRunAdapter);
$this->transcript->setDryRun((int)($object instanceof HeraldDryRunAdapter));
$xscripts = $object->applyHeraldEffects($effects);
foreach ($xscripts as $apply_xscript) {