piwik/plugins/SitesManager/API.php
/**
     * Checks that the array has at least one element
     *
     * @param array $urls
     * @throws Exception
     */
Checks that the array has at least one element
@param array $urls
@throws Exception
Checks that the array has at least one element @param array $urls @throws Exception
private function checkAtLeastOneUrl($urls)
    {
        if (!is_array($urls)
            || count($urls) == 0
        ) {
            throw new Exception(Piwik::translate("SitesManager_ExceptionNoUrl"));
        }
    }
private function checkAtLeastOneUrl ( $ urls ) { if ( ! is_array ( $ urls ) || count ( $ urls ) == 0 ) { throw new Exception ( Piwik :: translate ( " SitesManager_ExceptionNoUrl " ) ) ; } }
Checks that the array has at least one element
 @param array $urls
 @throws Exception
Checks that the array has at least one element @param array $urls @throws Exception