aboutsummaryrefslogtreecommitdiff
path: root/engine
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-04-02 18:47:12 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-04-02 18:47:12 +0000
commit0f736f6bb398e66e75308e579ec8f01fbdde5af4 (patch)
tree47f83cfa543ba2dafe376baddc0d95eeff72ef1b /engine
parentc1a2f850535701d32e58374eb5ceb0f74626a1d2 (diff)
downloadelgg-0f736f6bb398e66e75308e579ec8f01fbdde5af4.tar.gz
elgg-0f736f6bb398e66e75308e579ec8f01fbdde5af4.tar.bz2
Refs #2988 corrected typo in trunk
git-svn-id: http://code.elgg.org/elgg/trunk@8915 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine')
-rw-r--r--engine/classes/ElggRelationship.php11
1 files changed, 5 insertions, 6 deletions
diff --git a/engine/classes/ElggRelationship.php b/engine/classes/ElggRelationship.php
index 31ef73adb..a0826689d 100644
--- a/engine/classes/ElggRelationship.php
+++ b/engine/classes/ElggRelationship.php
@@ -136,14 +136,13 @@ class ElggRelationship extends ElggData implements
/**
* Import a relationship
*
- * @param array $data ODD data
- *
- * @return ElggRelationship
- *
+ * @param ODD $data ODD data
+
+ * @return bool
* @throws ImportException
*/
public function import(ODD $data) {
- if (!($element instanceof ODDRelationship)) {
+ if (!($data instanceof ODDRelationship)) {
throw new InvalidParameterException(elgg_echo('InvalidParameterException:UnexpectedODDClass'));
}
@@ -171,7 +170,7 @@ class ElggRelationship extends ElggData implements
throw new ImportException(elgg_echo('ImportException:ProblemSaving', array(get_class())));
}
- return $this;
+ return true;
}
}
}