aboutsummaryrefslogtreecommitdiff
path: root/h-source/Application
diff options
context:
space:
mode:
authorAntonio Gallo <tonicucoz@gmail.com>2012-11-19 13:50:18 +0000
committerAntonio Gallo <tonicucoz@gmail.com>2012-11-19 13:50:18 +0000
commita8fe9ae90ebba05415648b45f2039c945d8daac7 (patch)
tree640f055b2023307651d0e514d8e0173112336772 /h-source/Application
parent41f99e41332891c5337bbf4b16c64ea74a087619 (diff)
fixed a bug (not security related) in IssuesController
Diffstat (limited to 'h-source/Application')
-rw-r--r--h-source/Application/Controllers/IssuesController.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/h-source/Application/Controllers/IssuesController.php b/h-source/Application/Controllers/IssuesController.php
index d34e0f8..87b10d0 100644
--- a/h-source/Application/Controllers/IssuesController.php
+++ b/h-source/Application/Controllers/IssuesController.php
@@ -103,6 +103,11 @@ class IssuesController extends BaseController
//get the number of records
$this->m['IssuesModel']->from('issues')->left('messages')->using('id_issue')->groupBy('issues.id_issue')->orderBy('issues.update_date desc');
+ if ($this->islogged === "no")
+ {
+ $this->m['IssuesModel']->where(array("n!issues.deleted"=>"no"));
+ }
+
$recordNumber = $this->m['IssuesModel']->rowNumber();
$page = $this->viewArgs['page'];
//set the limit clause