This commit is contained in:
tomas 2005-01-20 01:55:15 +00:00
parent 47ec93ad47
commit b2f0411d7b
2 changed files with 9 additions and 8 deletions

View File

@ -23,7 +23,7 @@
Author : $Author: tomas $
Version : $Revision: 1.12 $
Version : $Revision: 1.13 $
Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/modules/storageServer/var/MetaData.php,v $
------------------------------------------------------------------------------*/
@ -412,9 +412,10 @@ class MetaData{
$objns=NULL, $object=NULL, $mode='insert')
{
//echo "$subjns, $subject, $predns, $predicate, $predxml, $objns, $object, $mode\n";
$predns_sql = (is_null($predns) ? "NULL":"'$predns'" );
$objns_sql = (is_null($objns) ? "NULL":"'$objns'" );
$object_sql = (is_null($object)? "NULL":"'$object'");
$predns_sql = (is_null($predns) ? "NULL" : "'".strtolower($predns)."'" );
$objns_sql = (is_null($objns) ? "NULL" : "'$objns'" );
$object_sql = (is_null($object)? "NULL" : "'$object'");
$predicate = strtolower($predicate);
if($mode == 'update'){
$cond = "gunid = x'{$this->gunid}'::bigint AND predns=$predns_sql
AND predicate='$predicate'";

View File

@ -23,7 +23,7 @@
Author : $Author: tomas $
Version : $Revision: 1.17 $
Version : $Revision: 1.18 $
Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/modules/storageServer/var/StoredFile.php,v $
------------------------------------------------------------------------------*/
@ -468,10 +468,10 @@ class StoredFile{
* @param playlistId string, playlist global unique ID
* @return boolean
*/
function isEdited($gunid=NULL)
function isEdited($playlistId=NULL)
{
if(is_null($gunid)) $gunid = $this->gunid;
$state = $this->_getState($gunid);
if(is_null($playlistId)) $playlistId = $this->playlistId;
$state = $this->_getState($playlistId);
if($state == 'edited'){ return TRUE; }
return FALSE;
}