Added job sorting links to index

This commit is contained in:
Karl Cordes 2011-04-13 11:28:45 +10:00
parent 674876f2e4
commit 4116f07388

View file

@ -19,7 +19,7 @@ class JobsController extends AppController {
if(isset($showUnpaid) && isset($showUnsent)) { if(!empty($showUnpaid) && !empty($showUnsent)) {
$conditions = array( $conditions = array(
'Job.all_paid' => 0, 'Job.all_paid' => 0,
@ -27,14 +27,14 @@ class JobsController extends AppController {
); );
} }
else if(isset($showUnpaid)) { else if(!empty($showUnpaid)) {
$conditions = array( $conditions = array(
'Job.all_paid' => 0, 'Job.all_paid' => 0,
); );
} }
else if(isset($showUnsent)) { else if(!empty($showUnsent)) {
$conditions = array( $conditions = array(
'Job.all_sent' => 0, 'Job.all_sent' => 0,
); );