[BUGFIX] Fix PHP warning with CTYPE=media