Numerous job errors have been fixed
Whoops\Exception\ErrorException thrown with message "Undefined array key "edit"" Stacktrace: #4 Whoops\Exception\ErrorException in /var/www/enginegp/data/www/demo.enginegp.com/system/acp/sections/jobs/index.php:5 #3 Whoops\Run:handleError in /var/www/enginegp/data/www/demo.enginegp.com/system/acp/sections/jobs/index.php:5 #2 include in /var/www/enginegp/data/www/demo.enginegp.com/system/acp/engine/jobs.php:31 #1 include in /var/www/enginegp/data/www/demo.enginegp.com/system/acp/distributor.php:63 #0 include in /var/www/enginegp/data/www/demo.enginegp.com/acp/index.php:50 Whoops\Exception\ErrorException thrown with message "Undefined variable $list" Stacktrace: #4 Whoops\Exception\ErrorException in /var/www/enginegp/data/www/demo.enginegp.com/system/acp/sections/jobs/index.php:32 #3 Whoops\Run:handleError in /var/www/enginegp/data/www/demo.enginegp.com/system/acp/sections/jobs/index.php:32 #2 include in /var/www/enginegp/data/www/demo.enginegp.com/system/acp/engine/jobs.php:31 #1 include in /var/www/enginegp/data/www/demo.enginegp.com/system/acp/distributor.php:63 #0 include in /var/www/enginegp/data/www/demo.enginegp.com/acp/index.php:50 Whoops\Exception\ErrorException thrown with message "Undefined variable $list" Stacktrace: #4 Whoops\Exception\ErrorException in /var/www/enginegp/data/www/demo.enginegp.com/system/acp/sections/jobs/request.php:57 #3 Whoops\Run:handleError in /var/www/enginegp/data/www/demo.enginegp.com/system/acp/sections/jobs/request.php:57 #2 include in /var/www/enginegp/data/www/demo.enginegp.com/system/acp/engine/jobs.php:31 #1 include in /var/www/enginegp/data/www/demo.enginegp.com/system/acp/distributor.php:63 #0 include in /var/www/enginegp/data/www/demo.enginegp.com/acp/index.php:50
This commit is contained in:
parent
6a55364754
commit
479bad25d3
|
@ -2,9 +2,11 @@
|
|||
if (!DEFINED('EGP'))
|
||||
exit(header('Refresh: 0; URL=http://' . $_SERVER['SERVER_NAME'] . '/404'));
|
||||
|
||||
if ($url['edit']) {
|
||||
if (isset($url['edit']) && $url['edit']) {
|
||||
include(SEC . 'jobs/edit.php');
|
||||
} else {
|
||||
$list = '';
|
||||
|
||||
$sql->query('SELECT * FROM `jobs` ORDER BY `id` ASC');
|
||||
while ($jobs = $sql->get()) {
|
||||
$status = [
|
||||
|
|
|
@ -28,6 +28,8 @@ if ($id) {
|
|||
$html->set($idata, $jobs_app[$idata]);
|
||||
$html->pack('main');
|
||||
} else {
|
||||
$list = '';
|
||||
|
||||
$sql->query('SELECT * FROM `jobs_app` ORDER BY `id` ASC');
|
||||
while ($jobs = $sql->get()) {
|
||||
$status = [
|
||||
|
|
Loading…
Reference in a new issue