diff --git a/lam/lib/modules/inetOrgPerson.inc b/lam/lib/modules/inetOrgPerson.inc index 7eb1a5e0..16b3d421 100644 --- a/lam/lib/modules/inetOrgPerson.inc +++ b/lam/lib/modules/inetOrgPerson.inc @@ -1729,7 +1729,7 @@ class inetOrgPerson extends baseModule implements passwordService { if ($_FILES['photoFile'] && ($_FILES['photoFile']['size'] > 0)) { $name = $_FILES['photoFile']['name']; $extension = strtolower(substr($name, strpos($name, '.') + 1)); - if (!extension_loaded('imagick') && !($extension == '.jpg') && !($extension == '.jpeg')) { + if (!extension_loaded('imagick') && !($extension == 'jpg') && !($extension == 'jpeg')) { $messages[] = $this->messages['file'][1]; return $messages; }