MDLSITE-3651 - fix php warning