Skip to content

PHP version backwards compatibility issue #42

@apmuthu

Description

@apmuthu

2f3375b#commitcomment-44633990

Line 347 in gl/includes/db/gl_db_bank_accounts.inc:

	$id = $row ? get_default_bank_account($row[0])['id'] : 0;

is valid for PHP >= 5.4.
For older versions of PHP like 5.3.3, etc, replace the said line with:

	$id = 0;
	if ($a = get_default_bank_account($row[0])) {
		$id = $a['id'];
		unset ($a);
	}

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