Issue #2388497 by xan_ps: Resolved PHP warning