Dummy metadata XML string returned from getMetaData if there is no metadata.

This commit is contained in:
tomas 2005-02-03 02:19:47 +00:00
parent c434ad025e
commit 38d98806c0
1 changed files with 5 additions and 2 deletions

View File

@ -23,7 +23,7 @@
Author : $Author: tomas $ Author : $Author: tomas $
Version : $Revision: 1.14 $ Version : $Revision: 1.15 $
Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/modules/storageServer/var/MetaData.php,v $ Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/modules/storageServer/var/MetaData.php,v $
------------------------------------------------------------------------------*/ ------------------------------------------------------------------------------*/
@ -167,7 +167,10 @@ class MetaData{
function getMetaData() function getMetaData()
{ {
// return $this->genXMLDoc(); // obsolete // return $this->genXMLDoc(); // obsolete
return file_get_contents($this->fname); if(file_exists($this->fname))
return file_get_contents($this->fname);
else
return "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<metadata/>\n";
} }
/** /**