- Improved db error exception in index.php
$graph->Render();
$dbSql->tpl->assign('graph_stored_bytes', $graph->Get_Image_file() );
+
// Last 15 used volumes
$vol_list = array();
$result = $dbSql->db_link->query( $query );
if ( PEAR::isError( $result ) )
- die( "Unable to get last used volumes from catalog \n " . $result->getMessage() );
+ $this->TriggerDBError( 'Unable to get last used volumes from catalog' . $result );
else {
while ( $vol = $result->fetchRow() )
array_push( $vol_list, $vol );
</tr>
{foreach from=$volume_list item=vol}
<tr>
- <td>{$vol.Volumename}</td>
- <td>{$vol.VolStatus}</td>
- <td>{$vol.Lastwritten}</td>
- <td>{$vol.JobId}</td>
+ <td>{$vol.volumename}</td>
+ <td>{$vol.volstatus}</td>
+ <td>{$vol.lastwritten}</td>
+ <td>{$vol.jobid}</td>
</tr>
{/foreach}
</table>