Collections functions
General functions
Render functions
Theme permission functions
Resource functions

job_queue_delete()

Description

Delete a job queue entry if user owns job or user is admin

Parameters

ColumnTypeDefaultDescription
$ref mixed

Return

void

Location

include/job_functions.php lines 98 to 109

Definition

 
function job_queue_delete($ref)
    {
    global 
$userref;
    
$query "DELETE FROM job_queue WHERE ref= ?";
    
$parameters = array("i",$ref);
    if (!
checkperm('a') && !php_sapi_name() == "cli")
        {
        
$query .= " AND user = ?";
        
$parameters array_merge($parameters,array("i",$userref));
        }
    
ps_query($query$parameters);
    }

This article was last updated 29th May 2022 06:35 Europe/London time based on the source file dated 19th May 2022 17:05 Europe/London time.