]> Kevux Git Server - koopa/commit
Bugfix: inconsistency in c_base_error's s_false() and s_true() NULL value handling
authorKevin Day <thekevinday@gmail.com>
Sat, 3 Feb 2018 18:39:13 +0000 (12:39 -0600)
committerKevin Day <thekevinday@gmail.com>
Sat, 3 Feb 2018 18:39:13 +0000 (12:39 -0600)
commitdc434d9e9652a94537887a865f4bfb07d05cf4a0
tree378af345896bc0c46b7437e3fd3a59187345a369
parent5ad6986820edbe03c37556e1c78cf674d03fe474
Bugfix: inconsistency in c_base_error's s_false() and s_true() NULL value handling

The comments designate that when NULL is specified, no error should be assigned.
The previous behavior was instead creating a new, empty error.

The error classes also seem to accept NULL values, which will create an empty error array (clearing existing values).
By passing NULL instead of creating an error object makes the behavior consistent with other code.
common/base/classes/base_return.php