Index: trunk/MagicSoft/Mars/datacenter/db/tabs.php
===================================================================
--- trunk/MagicSoft/Mars/datacenter/db/tabs.php	(revision 9309)
+++ trunk/MagicSoft/Mars/datacenter/db/tabs.php	(revision 9310)
@@ -58,22 +58,27 @@
 ?>
 <?
-   // read the file into an array
-   $lines = file($path.$csvname[$type].".csv");
-
-   // some replacement for the printf
-   $search  = array ("%",  "\n", "\\"   );
-   $replace = array ("%%", "",   "\\\\" );
-
-   for ($i=0; $i<sizeof($lines); $i++)
+
+   $csvfile=$path.$csvname[$type].".csv";
+   if (file_exists($csvfile))
    {
-        //$arr = get_csv($lines[$i], "\t\n");
-        $tok = strtok($lines[$i], "\t\n");
-        $j=0;
-        while ($tok!==false)
-        {
-            $arr[$i][$j++] = str_replace($search, $replace, $tok);
-            $tok = strtok("\t");
-        }
-    }
+       // read the file into an array
+       $lines = file($csvfile);
+
+       // some replacement for the printf
+       $search  = array ("%",  "\n", "\\"   );
+       $replace = array ("%%", "",   "\\\\" );
+
+       for ($i=0; $i<sizeof($lines); $i++)
+       {
+           //$arr = get_csv($lines[$i], "\t\n");
+           $tok = strtok($lines[$i], "\t\n");
+           $j=0;
+           while ($tok!==false)
+           {
+               $arr[$i][$j++] = str_replace($search, $replace, $tok);
+               $tok = strtok("\t");
+           }
+       }
+   }
 
 //    fclose($file);
