Skip to content

\Fuel\Core\Cache_Storage_Driver::get_content_handler - always false cond #2128

@Illirgway

Description

@Illirgway

https://github.com/fuel/core/blob/1.9/develop/classes/cache/storage/driver.php#L382

		// When not yet set, use $handler or detect the preferred handler (string = string, otherwise serialize)
		if (empty($this->content_handler) && empty($handler))    // (1)
		{
			if ( ! empty($handler))    // (2)
			{

Due to (1), empty($handler) in (2) is always true, so cond is always false and never fire. I can't understand exactly what this code should do so i can't write fix commit, only issue

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