$str = $this->renderTable($this->table);
if (empty($str)) {
// case empty datatable we dont print anything in the CSV export
// when in xml we would output <result date="2008-01-15" />
if (!empty($returned)) {
// specific case, we have only one column and this column wasn't named properly (indexed by a number)
// we don't print anything in the CSV file => an empty line
array("ghqgeggg", "gegageqqqqqqqgeqgqeg84897897897897g122", "email@email.com", "alias"), // too long -> exception
array("geggeqgeqag", "", "email@email.com", "alias"), // empty -> exception
/**
* empty alias => use login
*/
public function testAddUserEmptyAlias()
*/
public function testDeleteUserEmptyUser()
//alias shouldnt be empty even if no alias specified
/**
* no user => empty array
*/
public function testSetUserAccess_ShouldNotBeAbleToSetAnyAccess_IfIdSitesIsEmpty()
{
// empty
$visitorA->setCustomVariable($id = 2, $name = 'SET WITH EMPTY VALUE', $value = '');
$visitorA->setCustomVariable($id = 1, $name = 'Language', $value = 'FR', $scope = 'page');
$visitorA->setCustomVariable($id = 2, $name = 'SET WITH EMPTY VALUE PAGE SCOPE', $value = '', $scope = 'page');
$visitorB = self::getTracker($idSite, $dateTime, $defaultInit = true);
if (!empty($this->visitorId)) {
if(!$sqlite) {
echo 'alert("WARNING: Javascript integration tests require sqlite, \n1) ensure this PHP extension is enabled to make sure you run all tests \napt-get install php5-sqlite \n2) Then please create an empty file enable_sqlite in tests/javascript/enable_sqlite \n3) Re-execute this page and make sure this popup does not display ");';
equal( JSON2.stringify(1.1), '1.1', 'float 1.1' );
equal( JSON2.stringify(""), '""', 'empty string' );
equal( JSON2.parse('1.1'), 1.1, 'float 1.1' );
equal( JSON2.parse('""'), "", 'empty string' );
equal( typeof tracker.hook.test._isString, 'function', 'isString' );
ok( tracker.hook.test._isString(''), 'isString(emptyString)' );
ok( tracker.hook.test._getProtocolScheme('javascript:alert(document.cookie)') === 'javascript', 'javascript:' );
ok( tracker.hook.test._getProtocolScheme('') === null, 'empty string' );
; The path on the server in which the cookie will be available on.
; Defaults to empty. See spec in http://curl.haxx.se/rfc/cookie_spec.html
; The path on the server in which the cookie will be available on.
; Defaults to empty. See spec in http://curl.haxx.se/rfc/cookie_spec.html
[mail]
defaultHostnameIfEmpty = defaultHostnameIfEmpty.example.org ; default Email @hostname, if current host can't be read from system variables
transport = ; smtp (using the configuration below) or empty (using built-in mail() function)
port = ; optional; defaults to 25 when security is none or tls; 465 for ssl
password = ; SMTP password
encryption = ; SMTP transport-layer encryption, either 'ssl', 'tls', or empty (i.e., none).
/**
* Hooks when a website tracker cache is flushed (website updated, cache deleted, or empty cache)
$searchParameters = $website['sitesearch_keyword_parameters'];
if (empty($searchParameters)) {
$searchParameters = $website['sitesearch_category_parameters'];
if (empty($searchParameters)) {
/**
* Trims each element of a comma-separated list of strings, removes empty elements and
$view->config = Common::json_encode($config);
$view->noData = empty($config['visitsSummary']['nb_visits']);
$site = new Site($idSite);
$hasGoals = !empty($goals) || $site->isEcommerceEnabled();
$params['showRawMetrics'] = 1;
if (empty($params['segment'])) {
$segment = \Piwik\API\Request::getRawSegmentFromRequest();
if (!empty($segment)) {
preg_match('#Open Directory Sites[^\(]+\([0-9]-[0-9]+ of ([0-9]+)\)#', $data, $p);
if (!empty($p[1])) {
preg_match('#<a href=\"([^>]*)' . preg_quote($url) . '/\">([^<]*)<\/a>#', $data, $p);
if (!empty($p[2])) {
preg_match('#(?:Creation Date|Created On|Registered on)\.*:\s*([ \ta-z0-9\/\-:\.]+)#si', $data, $p);
if (!empty($p[1])) {
preg_match('#(?:Creation Date|Created On):\s*([ \ta-z0-9\/\-:\.]+)#si', $data, $p);
if (!empty($p[1])) {
protected static $registeredRules = array(
'nonempty' => array('HTML_QuickForm2_Rule_Nonempty', null),
'empty' => array('HTML_QuickForm2_Rule_Empty', null),
'required' => array('HTML_QuickForm2_Rule_Required', null),
* @param string Class name
* @param string File containing the class, leave empty if class already loaded
* @param string Class name
* @param string File containing the class, leave empty if class already loaded