PHP5.4 warning fix