Permalink
Browse files

Bypass for no query for billings index

  • Loading branch information...
1 parent b844936 commit 814edc93d263ecf9303f764e52754c91064451d7 @tareko committed Dec 19, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 app/Controller/BillingsController.php
@@ -12,6 +12,10 @@ function index() {
$this->loadModel('BillingsItem');
$this->loadModel('Shift');
+ if (!isset($this->request->query['id']) || !isset($this->request->query['start_date']) || !isset($this->request->query['end_date'])) {
+ return $this->render();
+ }
+
$conditions = array();
if (isset($this->request->query['id'])) {
$conditions = $conditions + array('user_id' => $this->request->query['id']);

0 comments on commit 814edc9

Please sign in to comment.