summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMalf Furious <m@lfurio.us>2017-06-03 17:24:31 -0400
committerMalf Furious <m@lfurio.us>2017-06-03 17:24:31 -0400
commiteb4b42f32856b0e5616b700614c8c68d77cd0ea3 (patch)
tree87fae3eec36c1ae5bc1c416838a7eecfe69570c1
parent37db482851a7724520e5db7aef89dcd8490cc081 (diff)
downloadscrott-eb4b42f32856b0e5616b700614c8c68d77cd0ea3.tar.gz
scrott-eb4b42f32856b0e5616b700614c8c68d77cd0ea3.zip
issue: Fix bug in function advance()
The call to setParent() should have been in an else. It was being called every time...
-rw-r--r--app/class/issue.class.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/class/issue.class.php b/app/class/issue.class.php
index e439dff..1286e1a 100644
--- a/app/class/issue.class.php
+++ b/app/class/issue.class.php
@@ -100,8 +100,8 @@ class issue extends object
if (!($next = $stage->getNext()))
$this->close();
-
- $this->setParent($next);
+ else
+ $this->setParent($next);
}
/*