Skip to content
Snippets Groups Projects

Hotline#23865 reactivate visu count in stats notices

Compare and
+ 5
5
Preferences
Compare changes
@@ -41,8 +41,11 @@ class Class_StatsNotices {
protected function _addStat($id_notice, $field) {
$annee = date('Y');
$mois = date('m');
sqlExecute(sprintf('update notices set %s = %s + 1 where id_notice=%s',
$field, $field, $id_notice));
// @see http://forge.afi-sa.fr/issues/23151
/*
sqlExecute(sprintf('update notices set %s = %s + 1 where id_notice=%s', $field, $field, $id_notice));
*/
if (!fetchOne(sprintf('select count(*) from stats_notices where annee=%s and mois=%s',
$annee, $mois)))
@@ -171,9 +174,6 @@ class Class_StatsNotices {
protected function _isBlackListed() {
// @see http://forge.afi-sa.fr/issues/23151
return true;
$robots = explode(';', getVar('BLACK_LIST_ROBOT'));
$client = null;