anewt-developers team mailing list archive
-
anewt-developers team
-
Mailing list archive
-
Message #00176
[Branch ~uws/anewt/anewt.uws] Rev 1741: [core] Magic method handling in AnewtContainer::add() is broken
------------------------------------------------------------
revno: 1741
author: Michael Budde <mbudde@xxxxxxxxx>
committer: Wouter Bolsterlee <uws@xxxxxxxxx>
branch nick: anewt.uws
timestamp: Tue 2010-01-05 21:21:31 +0100
message:
[core] Magic method handling in AnewtContainer::add() is broken
Add missing $ and missing return statement. Fixes bug
#443149.
modified:
core/container.lib.php
--
lp:anewt
https://code.launchpad.net/~uws/anewt/anewt.uws
Your team Anewt developers is subscribed to branch lp:anewt.
To unsubscribe from this branch go to https://code.launchpad.net/~uws/anewt/anewt.uws/+edit-subscription.
=== modified file 'core/container.lib.php'
--- core/container.lib.php 2009-08-02 16:32:09 +0000
+++ core/container.lib.php 2010-01-05 20:21:31 +0000
@@ -229,7 +229,10 @@
/* Add method defined? */
$add_method = sprintf('add_%s', $name);
if (method_exists($this, $add_method))
- $this->add_method($value);
+ {
+ $this->$add_method($value);
+ return;
+ }
/* Fallback to regular variable storage */
$this->_add($name, $value);