Civil Code, § 2801, as amended, is intended to protect those improving the land, but not to increase the liability of the owner beyond the terms of his original contract. The statute operates in part against the contractor, and in part against the landowner. The money as it becomes due is charged with a lien as against the contractor, in favor of the subcontractor, material-men, and laborers. On the other hand the land is charged with a lien as against the owner, for the purpose of securing the payment of the contract price, and creating the fund out of which the subcontractors and laborers may be paid. In this view the statute operates as a sort of automatic garnishment, which without summons or service impounds the fund due by the owner, and requires it to be held up until the expiration of the time named in the statute. But if nothing becomes due to the contractor, there is nothing caught. There is no fund cut of which those employed by him are to be paid. ' For in all these cases it must be understood that the contractor’s employees are to be paid out of the contractor’s money. The landowner is not under, any primary obligation or contract to pay them. When they are paid, under the operation of the lien law the payments are treated as credits on the amount due the contractor. The materialmen and laborers stand in his shoes, and recover out of what is due to him. That failing, they have no claim against the landowner. Applying these principles to the present case, the judge correctly held that the plaintiff could not recover. Instead of Harris being *241indebted to Lawson, the contractor, the latter was actually indebted to Harris $125 for the breach of the contract. The landowner was not even equitably liable for the value of work done.
Judgment affirmed.
All the Justices concur, except Fish, P. J., disqualified.