Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Bypass for no query for billings index

  • Loading branch information...
commit 814edc93d263ecf9303f764e52754c91064451d7 1 parent b844936
Tarek Loubani authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 app/Controller/BillingsController.php
4 app/Controller/BillingsController.php
View
@@ -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']);
Please sign in to comment.
Something went wrong with that request. Please try again.