Skip to content

Toolbar Oldest files delete bug #1135

Description

@byazrail

system/Debug/Toolbar format function;

		// Oldest files will be deleted
		if ($app->toolbarMaxHistory >= 0 && $i >= $app->toolbarMaxHistory)
		{
			Services::cache()->delete($filenames[$i]);
			continue;
		}

fixed;

		// Oldest files will be deleted
		if ($app->toolbarMaxHistory >= 0 && ($i + 1) >= $app->toolbarMaxHistory)
		{
			Services::cache()->delete($filenames[$i]);
			continue;
		}

Count and file $i start 0.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions