diff --git a/htdocs/install/check.php b/htdocs/install/check.php
index fefab844e05..a0e8493ae20 100644
--- a/htdocs/install/check.php
+++ b/htdocs/install/check.php
@@ -107,7 +107,7 @@ else
// Check if GD installed
-if (! function_exists("imagecreate "))
+if (! function_exists("imagecreate"))
{
print '
'.$langs->trans("ErrorPHPDoesNotSupportGD")."
\n";
$checksok=0;