Differential D21795 Diff 51951 src/applications/transactions/storage/PhabricatorApplicationTransaction.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/transactions/storage/PhabricatorApplicationTransaction.php
Show First 20 Lines • Show All 599 Lines • ▼ Show 20 Lines | if ($this->getIsCreateTransaction()) { | ||||
default: | default: | ||||
$old = $this->getOldValue(); | $old = $this->getOldValue(); | ||||
if (is_array($old) && !$old) { | if (is_array($old) && !$old) { | ||||
return true; | return true; | ||||
} | } | ||||
if (!is_array($old)) { | if (!is_array($old)) { | ||||
if (!strlen($old)) { | if ($old === '' || $old === null) { | ||||
return true; | return true; | ||||
} | } | ||||
// The integer 0 is also uninteresting by default; this is often | // The integer 0 is also uninteresting by default; this is often | ||||
// an "off" flag for something like "All Day Event". | // an "off" flag for something like "All Day Event". | ||||
if ($old === 0) { | if ($old === 0) { | ||||
return true; | return true; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 1,212 Lines • Show Last 20 Lines |