Update click.php

/* Logging the click
$f = fopen($clickheatConf['logPath'].$final.'/'.date('Y-m-d').'.log', 'a');
if (!is_resource($f))
*/
/* Logging the Click without the PHP Warning Spam when a new page is indexed in Clickheat */
if (!($f = @fopen($clickheatConf['logPath'].$final.'/'.date('Y-m-d').'.log', 'a')))
This commit is contained in:
Steven Günther 2015-05-29 15:09:57 +02:00
parent 7cf2db9759
commit 22b9fbcdb0

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'])))