fixed autocomplete function
tagged for deployment
added workaround to https://bugs.php.net/bug.php?id=49184
and, not or