aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/metadata.php
diff options
context:
space:
mode:
authoricewing <icewing@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-03-05 18:31:51 +0000
committericewing <icewing@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-03-05 18:31:51 +0000
commit98648c651ec98beab9b4f8603260880f9427fb5d (patch)
treec70d99a6f9ae0194dfc3a223b33c65fd18568433 /engine/lib/metadata.php
parent0b11151888647bbb9ab4f50f3440934528b2f35e (diff)
downloadelgg-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/metadata.php')
-rw-r--r--engine/lib/metadata.php3
1 files changed, 2 insertions, 1 deletions
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 <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_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;
}