From 98648c651ec98beab9b4f8603260880f9427fb5d Mon Sep 17 00:00:00 2001 From: icewing Date: Wed, 5 Mar 2008 18:31:51 +0000 Subject: End of day git-svn-id: https://code.elgg.org/elgg/trunk@83 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/metadata.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'engine/lib/metadata.php') diff --git a/engine/lib/metadata.php b/engine/lib/metadata.php index 7e429e4dd..9d95cded6 100644 --- a/engine/lib/metadata.php +++ b/engine/lib/metadata.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 * @copyright Curverider Ltd 2008 * @link http://elgg.org/ */ @@ -87,6 +87,7 @@ else { $this->id = create_metadata($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; } -- cgit v1.2.3