diff --git a/webbuild/webbuild-cgi b/webbuild/webbuild-cgi
index 0a2c65c..b5b8657 100755
--- a/webbuild/webbuild-cgi
+++ b/webbuild/webbuild-cgi
@@ -1409,7 +1409,7 @@ if [ "$MAINTAINERMODE" != "true" ]; then
echo -n "
"
fi
# automatic port
- if [ ! "${AUTOPORT_DISABLE[$ENVIRONMENT]}" -a ! "${AUTOPORT_UPDATE[$ENVIRONMENT]}" ]; then
+ if [ "${AUTOPORT_PORT_REPOSITORY[$ENVIRONMENT]}" ]; then
echo -n "Automatic port:"
echo -n "