diff options
Diffstat (limited to 'engine/lib')
-rw-r--r-- | engine/lib/entities.php | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/engine/lib/entities.php b/engine/lib/entities.php index 17b6ff7f3..7ce4047bb 100644 --- a/engine/lib/entities.php +++ b/engine/lib/entities.php @@ -170,9 +170,13 @@ /** * Clear metadata. */ - public function clearMetaData() - { - return clear_metadata($this->getGUID()); + public function clearMetaData($name = "") + {
+ if (empty($name)) { + return clear_metadata($this->getGUID());
+ } else {
+ return remove_metadata($this->getGUID(),$name);
+ } } /**
|