aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/system_log.php
diff options
context:
space:
mode:
authormarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-10-27 16:57:10 +0000
committermarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-10-27 16:57:10 +0000
commitc3fc445ccbc590ec930fe56e5756b88bddb13259 (patch)
treea8c31066716fef9dfe47d4c6dbf067eb8f83e06c /engine/lib/system_log.php
parent5905681272b3755fa210a9487f4ecac9aad56d23 (diff)
downloadelgg-c3fc445ccbc590ec930fe56e5756b88bddb13259.tar.gz
elgg-c3fc445ccbc590ec930fe56e5756b88bddb13259.tar.bz2
Refs #215: Minor tweak to logic
git-svn-id: https://code.elgg.org/elgg/trunk@2316 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib/system_log.php')
-rw-r--r--engine/lib/system_log.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/engine/lib/system_log.php b/engine/lib/system_log.php
index f0aa14522..2c07d8489 100644
--- a/engine/lib/system_log.php
+++ b/engine/lib/system_log.php
@@ -240,7 +240,7 @@
global $CONFIG;
$now = time(); // Take a snapshot of now
-
+
// create table
if (!update_data("CREATE TABLE {$CONFIG->dbprefix}system_log_$now as SELECT * from {$CONFIG->dbprefix}system_log WHERE time_created<=$now"))
return false;
@@ -250,7 +250,7 @@
return false;
// delete
- if (!delete_data("DELETE from {$CONFIG->dbprefix}system_log WHERE id in (select id from {$CONFIG->dbprefix}system_log_$now)")) // Don't delete on time since we are running in a concurrent environment
+ if (delete_data("DELETE from {$CONFIG->dbprefix}system_log WHERE id in (select id from {$CONFIG->dbprefix}system_log_$now)")===false) // Don't delete on time since we are running in a concurrent environment
return false;
return true;