Fixed #481
This commit is contained in:
parent
47ec93ad47
commit
b2f0411d7b
|
@ -23,7 +23,7 @@
|
||||||
|
|
||||||
|
|
||||||
Author : $Author: tomas $
|
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 $
|
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')
|
$objns=NULL, $object=NULL, $mode='insert')
|
||||||
{
|
{
|
||||||
//echo "$subjns, $subject, $predns, $predicate, $predxml, $objns, $object, $mode\n";
|
//echo "$subjns, $subject, $predns, $predicate, $predxml, $objns, $object, $mode\n";
|
||||||
$predns_sql = (is_null($predns) ? "NULL":"'$predns'" );
|
$predns_sql = (is_null($predns) ? "NULL" : "'".strtolower($predns)."'" );
|
||||||
$objns_sql = (is_null($objns) ? "NULL":"'$objns'" );
|
$objns_sql = (is_null($objns) ? "NULL" : "'$objns'" );
|
||||||
$object_sql = (is_null($object)? "NULL":"'$object'");
|
$object_sql = (is_null($object)? "NULL" : "'$object'");
|
||||||
|
$predicate = strtolower($predicate);
|
||||||
if($mode == 'update'){
|
if($mode == 'update'){
|
||||||
$cond = "gunid = x'{$this->gunid}'::bigint AND predns=$predns_sql
|
$cond = "gunid = x'{$this->gunid}'::bigint AND predns=$predns_sql
|
||||||
AND predicate='$predicate'";
|
AND predicate='$predicate'";
|
||||||
|
|
|
@ -23,7 +23,7 @@
|
||||||
|
|
||||||
|
|
||||||
Author : $Author: tomas $
|
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 $
|
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
|
* @param playlistId string, playlist global unique ID
|
||||||
* @return boolean
|
* @return boolean
|
||||||
*/
|
*/
|
||||||
function isEdited($gunid=NULL)
|
function isEdited($playlistId=NULL)
|
||||||
{
|
{
|
||||||
if(is_null($gunid)) $gunid = $this->gunid;
|
if(is_null($playlistId)) $playlistId = $this->playlistId;
|
||||||
$state = $this->_getState($gunid);
|
$state = $this->_getState($playlistId);
|
||||||
if($state == 'edited'){ return TRUE; }
|
if($state == 'edited'){ return TRUE; }
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue