summaryrefslogtreecommitdiff
path: root/core/helpers/batch.php
diff options
context:
space:
mode:
Diffstat (limited to 'core/helpers/batch.php')
-rw-r--r--core/helpers/batch.php4
1 files changed, 2 insertions, 2 deletions
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);
}