Skip to content

Undefined variable php warning #109

@daphilli224

Description

@daphilli224

I'm receiving an undefined variable $template_dir_select when adding a product to an order with edit orders. The warning is: PHP Warning: Undefined variable $template_dir_select in /admin/includes/init_includes/init_eo_sba.php on line 314. Same warning occurs for line 315 in the same file.

I fixed the problem by changing line 314 to: if (!empty($template_dir_select) && file_exists(DIR_WS_LANGUAGES . $_SESSION['language'] . '/' . $template_dir_select . 'edit_orders_sba.php')) {

My apologies if this has been reported before.

Dave
zc157c, php 8.0.22

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions