- ";
- echo "
".PROJECT." v".VERSION." ".$lang['help_doc']."";
- foreach((array)$help as $key => $val)
+ //- Select database (from session or first available)
+ if(!isset($currentDB) && count($databases)>0)
{
- echo "
".$key."";
+ //set the current database to the first existing one in the array (default)
+ $currentDB = reset($databases);
+ $params->database = $currentDB['path'];
}
- echo "
";
- echo "