From b2f0411d7b5913c3c8b5e18efc9d2f933ee42652 Mon Sep 17 00:00:00 2001 From: tomas Date: Thu, 20 Jan 2005 01:55:15 +0000 Subject: [PATCH] Fixed #481 --- livesupport/modules/storageServer/var/MetaData.php | 9 +++++---- livesupport/modules/storageServer/var/StoredFile.php | 8 ++++---- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/livesupport/modules/storageServer/var/MetaData.php b/livesupport/modules/storageServer/var/MetaData.php index 7e6fcf1f8..4176fa1f8 100644 --- a/livesupport/modules/storageServer/var/MetaData.php +++ b/livesupport/modules/storageServer/var/MetaData.php @@ -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'"; diff --git a/livesupport/modules/storageServer/var/StoredFile.php b/livesupport/modules/storageServer/var/StoredFile.php index 1b49b1e1c..a6fdcd764 100644 --- a/livesupport/modules/storageServer/var/StoredFile.php +++ b/livesupport/modules/storageServer/var/StoredFile.php @@ -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; }