From 557d09bb72f7e9848b6fc50ed4e2ba651b89e743 Mon Sep 17 00:00:00 2001 From: Meik Sievertsen Date: Sun, 10 Apr 2005 18:07:12 +0000 Subject: - added updated coding guidelines - introduced is_registered and is_bot flags for correct determinition of guest/registered/bot users - changed bot code to act on useragent || ip git-svn-id: file:///svn/phpbb/trunk@5117 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/includes/acm/acm_db.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'phpBB/includes/acm/acm_db.php') diff --git a/phpBB/includes/acm/acm_db.php b/phpBB/includes/acm/acm_db.php index 4b0cf6486c..e4d6e2b527 100644 --- a/phpBB/includes/acm/acm_db.php +++ b/phpBB/includes/acm/acm_db.php @@ -87,13 +87,14 @@ class acm } $this->var_expires = array(); - if (count($delete)) + if (sizeof($delete)) { $sql = 'DELETE FROM ' . CACHE_TABLE . " WHERE var_name IN ('" . implode("', '", $delete) . "')"; $db->sql_query($sql); } - if (count($insert)) + + if (sizeof($insert)) { switch (SQL_LAYER) { -- cgit v1.2.1