1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-21 13:00:56 +01:00

Fix system agent toggling in MySQL strict mode

Summary: `''` is not a valid integer.

Test Plan: Used `bin/accountadmin` to turn bot flag on and off for a user.

Reviewers: btrahan, Firehed

Reviewed By: Firehed

Subscribers: epriestley

Differential Revision: https://secure.phabricator.com/D9046
This commit is contained in:
epriestley 2014-05-10 16:58:07 -07:00
parent 98013cc599
commit 1644ef185e

View file

@ -243,7 +243,7 @@ final class PhabricatorUserEditor extends PhabricatorEditor {
$log->setOldValue($user->getIsSystemAgent());
$log->setNewValue($system_agent);
$user->setIsSystemAgent($system_agent);
$user->setIsSystemAgent((int)$system_agent);
$user->save();
$log->save();