diff options
Diffstat (limited to '')
-rw-r--r-- | app/class/issue.class.php | 8 |
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"; + } } ?> |