On a certain extension of the maximum principle