EZP-22378: Added phpdoc
EZP-22378: Fixed loosy condition when no repository is specified in a SiteAccess