From b7a72825af7559f2fd39de0d4335049d3aa91e28 Mon Sep 17 00:00:00 2001 From: Tim Almdal Date: Tue, 3 Mar 2009 06:26:12 +0000 Subject: Remove the === false and === true checks I really mean it this time --- core/helpers/batch.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'core/helpers/batch.php') diff --git a/core/helpers/batch.php b/core/helpers/batch.php index 4411b1b0..98523f30 100644 --- a/core/helpers/batch.php +++ b/core/helpers/batch.php @@ -20,14 +20,14 @@ class batch_Core { static function operation($name, $item) { - if (self::in_progress($name) === false) { + if (!self::in_progress($name)) { Session::instance()->set("operation_$name", "1"); module::event("operation", $name, $item); } } static function end_operation($name) { - if (self::in_progress($name) === true) { + if (self::in_progress($name)) { module::event("end_operation", $name); Session::instance()->set("operation_$name", null); } -- cgit v1.2.3