Check for sampleData.php existence added.

This commit is contained in:
tomas 2005-08-15 14:06:30 +00:00
parent 64153ed5aa
commit badacf36e8

View file

@ -23,7 +23,7 @@
Author : $Author: tomas $ Author : $Author: tomas $
Version : $Revision: 1.57 $ Version : $Revision: 1.58 $
Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/modules/storageServer/var/BasicStor.php,v $ Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/modules/storageServer/var/BasicStor.php,v $
------------------------------------------------------------------------------*/ ------------------------------------------------------------------------------*/
@ -53,7 +53,7 @@ require_once "Transport.php";
* Core of LiveSupport file storage module * Core of LiveSupport file storage module
* *
* @author $Author: tomas $ * @author $Author: tomas $
* @version $Revision: 1.57 $ * @version $Revision: 1.58 $
* @see Alib * @see Alib
*/ */
class BasicStor extends Alib{ class BasicStor extends Alib{
@ -1286,7 +1286,10 @@ class BasicStor extends Alib{
$tr->resetData(); $tr->resetData();
} }
$rootHD = $this->getObjId('root', $this->storId); $rootHD = $this->getObjId('root', $this->storId);
include dirname(__FILE__)."/tests/sampleData.php"; $samples = dirname(__FILE__)."/tests/sampleData.php";
if(file_exists($samples)){
include $samples;
}else $sampleData = array();
$res = array( $res = array(
'audioclips'=>array(), 'playlists'=>array(), 'webstreams'=>array() 'audioclips'=>array(), 'playlists'=>array(), 'webstreams'=>array()
); );