1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-10 08:52:39 +01:00

Fix a variable being incorrectly overridden in Asana sync.

Auditors: btrahan
This commit is contained in:
epriestley 2013-07-21 13:40:20 -07:00
parent 215da7728f
commit d446ee0207

View file

@ -85,8 +85,8 @@ final class DoorkeeperBridgeAsana extends DoorkeeperBridge {
foreach ($refs as $ref) { foreach ($refs as $ref) {
$ref->setAttribute('name', pht('Asana Task %s', $ref->getObjectID())); $ref->setAttribute('name', pht('Asana Task %s', $ref->getObjectID()));
$failed = idx($failed, $ref->getObjectKey()); $did_fail = idx($failed, $ref->getObjectKey());
if ($failed) { if ($did_fail) {
$ref->setSyncFailed(true); $ref->setSyncFailed(true);
continue; continue;
} }