Mlp_Term_Translation::update_required PHP Méthode

update_required() private méthode

Compare tax bases
private update_required ( string | boolean $expected, string | boolean $existing ) : boolean
$expected string | boolean
$existing string | boolean
Résultat boolean TRUE if both are not FALSE and different
    private function update_required($expected, $existing)
    {
        if (!$expected) {
            return FALSE;
        }
        if (!$existing) {
            return FALSE;
        }
        return $existing !== $expected;
    }