Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PHP version backwards compatibility issue #42

Open
apmuthu opened this issue Dec 15, 2020 · 1 comment
Open

PHP version backwards compatibility issue #42

apmuthu opened this issue Dec 15, 2020 · 1 comment

Comments

@apmuthu
Copy link
Contributor

apmuthu commented Dec 15, 2020

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);
	}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant