Fixing PHP notices see #7260