diff options
author | icewing <icewing@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-03-05 18:31:51 +0000 |
---|---|---|
committer | icewing <icewing@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-03-05 18:31:51 +0000 |
commit | 98648c651ec98beab9b4f8603260880f9427fb5d (patch) | |
tree | c70d99a6f9ae0194dfc3a223b33c65fd18568433 /engine/lib/annotations.php | |
parent | 0b11151888647bbb9ab4f50f3440934528b2f35e (diff) | |
download | elgg-98648c651ec98beab9b4f8603260880f9427fb5d.tar.gz elgg-98648c651ec98beab9b4f8603260880f9427fb5d.tar.bz2 |
End of day
git-svn-id: https://code.elgg.org/elgg/trunk@83 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib/annotations.php')
-rw-r--r-- | engine/lib/annotations.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/engine/lib/annotations.php b/engine/lib/annotations.php index d1cf9905f..8a0438383 100644 --- a/engine/lib/annotations.php +++ b/engine/lib/annotations.php @@ -6,7 +6,7 @@ * @package Elgg * @subpackage Core * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2 - * @author Marcus Povey <marcus@dushka.co.uk + * @author Marcus Povey <marcus@dushka.co.uk> * @copyright Curverider Ltd 2008 * @link http://elgg.org/ */ @@ -87,6 +87,7 @@ else { $this->id = create_annotation($this->object_id, $this->object_type, $this->name, $this->value, $this->value_type, $this->owner_id, $this->access_id); + if (!$this->id) throw new IOException("Unable to save new ElggAnnotation"); return $this->id; } } |