aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoricewing <icewing@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-03-06 10:22:13 +0000
committericewing <icewing@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-03-06 10:22:13 +0000
commit982b28f3ed14a94a6a3c667a1639c221c2198691 (patch)
tree40c7db79b89359816b918ffe1d1fc0135ab81d7e
parent73276465c38c534bb4fbcf2e7ef3f09399e57b7f (diff)
downloadelgg-982b28f3ed14a94a6a3c667a1639c221c2198691.tar.gz
elgg-982b28f3ed14a94a6a3c667a1639c221c2198691.tar.bz2
Fixed ElggObject attributes.
git-svn-id: https://code.elgg.org/elgg/trunk@86 36083f99-b078-4883-b0ff-0f9b5a30f544
-rw-r--r--engine/lib/objects.php9
1 files changed, 6 insertions, 3 deletions
diff --git a/engine/lib/objects.php b/engine/lib/objects.php
index 1e3fd818f..f8a4387f3 100644
--- a/engine/lib/objects.php
+++ b/engine/lib/objects.php
@@ -335,8 +335,8 @@
private $attributes = array();
function __get($name) {
- if (isset($attributes[$name])) {
- return $attributes[$name];
+ if (isset($this->attributes[$name])) {
+ return $this->attributes[$name];
}
return null;
}
@@ -346,7 +346,10 @@
return true;
}
- function __construct($id = null) {
+ function __construct($id = null) {
+
+ $this->attributes = array();
+
if (!empty($id)) {
if ($object = get_object($id)) {
$objarray = (array) $object;