Vergleich inc/functions_task.php - 1.8.11 - 1.8.37

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 33Zeile 33
	}

// No task? Return

	}

// No task? Return

	if(!$task['tid'])

	if(!$task)

	{
$cache->update_tasks();
return false;

	{
$cache->update_tasks();
return false;

Zeile 50Zeile 50
	{
$db->update_query("tasks", array("locked" => TIME_NOW), "tid='{$task['tid']}'");
}

	{
$db->update_query("tasks", array("locked" => TIME_NOW), "tid='{$task['tid']}'");
}

 

$file = basename($task['file'], '.php');


// The task file does not exist


// The task file does not exist

	if(!file_exists(MYBB_ROOT."inc/tasks/{$task['file']}.php"))

	if(!file_exists(MYBB_ROOT."inc/tasks/{$file}.php"))

	{
if($task['logging'] == 1)
{

	{
if($task['logging'] == 1)
{

Zeile 80Zeile 82
		// Update the nextrun time now, so if the task causes a fatal error, it doesn't get stuck first in the queue
$nextrun = fetch_next_run($task);
$db->update_query("tasks", array("nextrun" => $nextrun), "tid='{$task['tid']}'");

		// Update the nextrun time now, so if the task causes a fatal error, it doesn't get stuck first in the queue
$nextrun = fetch_next_run($task);
$db->update_query("tasks", array("nextrun" => $nextrun), "tid='{$task['tid']}'");


include_once MYBB_ROOT."inc/tasks/{$task['file']}.php";

		
include_once MYBB_ROOT."inc/tasks/{$file}.php";

		$function = "task_{$task['file']}";
if(function_exists($function))
{

		$function = "task_{$task['file']}";
if(function_exists($function))
{