mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-06-21 00:49:55 -04:00
Remove the === false and === true checks
I really mean it this time
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user