Merge pull request #6 from stvn1911/patch-1

Update click.php
Thanks.
This commit is contained in:
piwikjapan 2015-05-30 10:43:37 +09:00
commit f87a957ee8

View file

@ -109,8 +109,7 @@ if ($clickheatConf['filesize'] !== 0)
}
}
/* Logging the click */
$f = fopen($clickheatConf['logPath'].$final.'/'.date('Y-m-d').'.log', 'a');
if (!is_resource($f))
if (!($f = @fopen($clickheatConf['logPath'].$final.'/'.date('Y-m-d').'.log', 'a')))
{
/* Can't open the log, let's try to create the directory */
if (!is_dir(dirname($clickheatConf['logPath'])))