Update VersionableDatabaseObjectAction.class.php

it is not necessary to call the method in a loop