From badacf36e815aa3d481ee9acfbf65082d16bff96 Mon Sep 17 00:00:00 2001 From: tomas Date: Mon, 15 Aug 2005 14:06:30 +0000 Subject: [PATCH] Check for sampleData.php existence added. --- livesupport/modules/storageServer/var/BasicStor.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/livesupport/modules/storageServer/var/BasicStor.php b/livesupport/modules/storageServer/var/BasicStor.php index 7af5d168f..c4a967dbe 100644 --- a/livesupport/modules/storageServer/var/BasicStor.php +++ b/livesupport/modules/storageServer/var/BasicStor.php @@ -23,7 +23,7 @@ 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 $ ------------------------------------------------------------------------------*/ @@ -53,7 +53,7 @@ require_once "Transport.php"; * Core of LiveSupport file storage module * * @author $Author: tomas $ - * @version $Revision: 1.57 $ + * @version $Revision: 1.58 $ * @see Alib */ class BasicStor extends Alib{ @@ -1286,7 +1286,10 @@ class BasicStor extends Alib{ $tr->resetData(); } $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( 'audioclips'=>array(), 'playlists'=>array(), 'webstreams'=>array() );