Fixed an undefined php notice.