This commit is contained in:
tomas 2005-01-12 15:21:59 +00:00
parent 820a400ae8
commit 51f0a745fc
1 changed files with 3 additions and 2 deletions

View File

@ -23,7 +23,7 @@
Author : $Author: tomas $ Author : $Author: tomas $
Version : $Revision: 1.19 $ Version : $Revision: 1.20 $
Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/modules/storageServer/var/GreenBox.php,v $ Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/modules/storageServer/var/GreenBox.php,v $
------------------------------------------------------------------------------*/ ------------------------------------------------------------------------------*/
@ -35,7 +35,7 @@ require_once "BasicStor.php";
* LiveSupport file storage module * LiveSupport file storage module
* *
* @author $Author: tomas $ * @author $Author: tomas $
* @version $Revision: 1.19 $ * @version $Revision: 1.20 $
* @see BasicStor * @see BasicStor
*/ */
class GreenBox extends BasicStor{ class GreenBox extends BasicStor{
@ -551,6 +551,7 @@ class GreenBox extends BasicStor{
SELECT to_hex(gunid)as gunid FROM {$this->filesTable} SELECT to_hex(gunid)as gunid FROM {$this->filesTable}
WHERE id='$id' WHERE id='$id'
"); ");
if(PEAR::isError($gunid)) return $gunid;
if(is_null($gunid)) return NULL; if(is_null($gunid)) return NULL;
return StoredFile::_normalizeGunid($gunid); return StoredFile::_normalizeGunid($gunid);
} }