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:
parent
98013cc599
commit
1644ef185e
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue