summaryrefslogtreecommitdiffstats
path: root/app/class/issue.class.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/class/issue.class.php')
-rw-r--r--app/class/issue.class.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/app/class/issue.class.php b/app/class/issue.class.php
index 57fc588..0fc12e4 100644
--- a/app/class/issue.class.php
+++ b/app/class/issue.class.php
@@ -183,6 +183,14 @@ class issue extends obj
$this->setParent($pad);
}
}
+
+ /*
+ * Check whether issue is currently open or closed.
+ */
+ public function isOpen() : bool
+ {
+ return self::typeOf($this->parent) != "pad";
+ }
}
?>