Multi enhancements, including auto serialization, product editing
This commit is contained in:
@@ -445,9 +445,13 @@ class Model_Invoice extends ORMOSB {
|
||||
// If our value is null, we'll remove it.
|
||||
if (is_null($value) AND isset($remind[$key]))
|
||||
unset($remind[$key]);
|
||||
elseif ($add)
|
||||
elseif ($add) {
|
||||
if (! is_array($a=$remind[$key]))
|
||||
$remind[$key] = array($a);
|
||||
|
||||
$remind[$key][] = $value;
|
||||
else
|
||||
|
||||
} else
|
||||
$remind[$key] = $value;
|
||||
|
||||
$this->reminders = serialize($remind);
|
||||
|
Reference in New Issue
Block a user