Ticket #3199: JobQueue2.diff

File JobQueue2.diff, 1.0 KB (added by gosarderreisende@…, 14 years ago)

correct Version of Diff-File

  • jobqueue.php

     
    9090                 );
    9191
    9292// Load up any defined user jobs
    93     $sh = $db->query('SELECT SUBSTR(j.value, 8,1) AS jnum,
     93    $sh = $db->query('SELECT SUBSTRING(j.value, 8,1) AS jnum,
    9494                             d.data               AS name
    9595                        FROM settings AS j,
    9696                             settings AS d
    97                        WHERE d.value = CONCAT("UserJobDesc", SUBSTR(j.value, 8,1))
     97                       WHERE d.value = CONCAT("UserJobDesc", SUBSTRING(j.value, 8,1))
    9898                             AND LENGTH(IFNULL(j.data, "")) > 0
    9999                             AND j.value LIKE "UserJob_"
    100100                    ORDER BY jnum');
    101101    while ($row = $sh->fetch_assoc()) {
    102         $Jobs[constant('UserJob'.$row['jnum'])] = $row['name'];
     102        $Jobs[constant('JOB_USERJOB'.$row['jnum'])] = $row['name'];
    103103    }
    104104    $sh->finish();