aboutsummaryrefslogtreecommitdiff
path: root/h-source/Application/Controllers/BaseController.php
diff options
context:
space:
mode:
authorAntonio Gallo <tonicucoz@gmail.com>2011-07-10 22:46:30 +0000
committerAntonio Gallo <tonicucoz@gmail.com>2011-07-10 22:46:30 +0000
commitbe1d2d6c4c5623c6af59cf72e74e0335d1aa6cb5 (patch)
tree746bf827e4e7845dffad02b39db9185461c710b6 /h-source/Application/Controllers/BaseController.php
parent878f70432bdfdd12a5c9788cec3d04ed862eafa6 (diff)
improved the way the history messages are shown
Diffstat (limited to 'h-source/Application/Controllers/BaseController.php')
-rw-r--r--h-source/Application/Controllers/BaseController.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/h-source/Application/Controllers/BaseController.php b/h-source/Application/Controllers/BaseController.php
index 697b79b..02db21d 100644
--- a/h-source/Application/Controllers/BaseController.php
+++ b/h-source/Application/Controllers/BaseController.php
@@ -136,7 +136,9 @@ class BaseController extends Controller
$data['lastModif'] = $this->m['HistoryModel']
->select()
- ->where(array('type'=>'hardware','gr'=>'registered'))
+ ->inner('hardware')
+ ->on('hardware.id_hard=history.id')
+ ->where(array('type'=>'hardware','gr'=>'registered','approved'=>'yes'))
->orderBy('id_history desc')
->limit(5)
->send();