Skip to content
Snippets Groups Projects
relationship_get_set_public.diff 704 B
### Eclipse Workspace Patch 1.0
#P UNL_Elgg
Index: elgg/engine/lib/relationships.php
===================================================================
--- elgg/engine/lib/relationships.php	(revision 3938)
+++ elgg/engine/lib/relationships.php	(working copy)
@@ -60,7 +60,7 @@
 		 * @param string $name
 		 * @return mixed
 		 */
-		protected function __get($name) {
+		public function __get($name) {
 			if (isset($this->attributes[$name])) 
 				return $this->attributes[$name];
 	
@@ -74,7 +74,7 @@
 		 * @param mixed $value
 		 * @return mixed
 		 */
-		protected function __set($name, $value) {
+		public function __set($name, $value) {
 			$this->attributes[$name] = $value;
 			return true;
 		}