navjotjsingh

Topic: [BUG FIX] Solution if Most Applied Jobs being set to 0 does not work

In Jobberbase v1.8 (No idea if it was present before) there is a bug that you can's set Most Applied Jobs from Settings>>Search/Pagination Settings to 0. If you set it to 0 you get this error:

Code:

Notice: Undefined variable: sql_limit in F:\server\xampp\htdocs\www\jobberbase\trunk\public\_includes\class.Job.php on line 591

And if you have turned error reporting off, no error will be shown and it will still show Most applied to Jobs.

This is due to a small logical bug being introduced in class.Job.php. Open class.Job.php and find this line:

find this line:

Code:

if($limit > 0 )
{
      $sql_limit = 'LIMIT ' . $limit;
}

and change it to

Code:

$sql_limit = 'LIMIT ' . $limit;

This should fix the bug.

evertsemeijn

Re: [BUG FIX] Solution if Most Applied Jobs being set to 0 does not work

Thanks @Navjot for solving this problem. Like I mentioned before, there is also a bug with the New jobs setting. Using 0 results in display all jobs as new jobs.

Anyone want to resolve it?

Member of Jobberbase Development Team - Templates/Usability :: Looking for installation and/or custom design? :: Beautiful Wordpress themes