From 0f736f6bb398e66e75308e579ec8f01fbdde5af4 Mon Sep 17 00:00:00 2001 From: cash Date: Sat, 2 Apr 2011 18:47:12 +0000 Subject: Refs #2988 corrected typo in trunk git-svn-id: http://code.elgg.org/elgg/trunk@8915 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/classes/ElggRelationship.php | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'engine/classes/ElggRelationship.php') 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; } } } -- cgit v1.2.3