public function getGravatarHash() { $email = trim($this->getSetting(Scalr_Account_User::SETTING_GRAVATAR_EMAIL)); return $email && strpos($email, '@') !== FALSE ? md5(strtolower($email)) : ''; }