Civil Code § 2876
ARTICLE 1. Definition of Liens
Where the holder of a special lien is compelled to satisfy a prior lien for his own protection, he may enforce payment of the amount so paid by him, as a part of the claim for which his own lien exists.