Added job sorting links to index
This commit is contained in:
parent
674876f2e4
commit
4116f07388
|
|
@ -19,7 +19,7 @@ class JobsController extends AppController {
|
|||
|
||||
|
||||
|
||||
if(isset($showUnpaid) && isset($showUnsent)) {
|
||||
if(!empty($showUnpaid) && !empty($showUnsent)) {
|
||||
|
||||
$conditions = array(
|
||||
'Job.all_paid' => 0,
|
||||
|
|
@ -27,14 +27,14 @@ class JobsController extends AppController {
|
|||
);
|
||||
}
|
||||
|
||||
else if(isset($showUnpaid)) {
|
||||
else if(!empty($showUnpaid)) {
|
||||
$conditions = array(
|
||||
'Job.all_paid' => 0,
|
||||
|
||||
);
|
||||
}
|
||||
|
||||
else if(isset($showUnsent)) {
|
||||
else if(!empty($showUnsent)) {
|
||||
$conditions = array(
|
||||
'Job.all_sent' => 0,
|
||||
);
|
||||
|
|
|
|||
Loading…
Reference in a new issue