fixed not working holidays after the old sbox class has been removed from the API

This commit is contained in:
Ralf Becker 2006-08-21 08:03:32 +00:00
parent be7cca8a44
commit 56382e2c1a

View File

@ -463,9 +463,11 @@
{ {
return false; return false;
} }
$sbox =& CreateObject('phpgwapi.sbox'); $monthnames = array(
$month = $holiday['month'] ? lang($sbox->monthnames[$holiday['month']]) : ''; '','January','February','March','April','May','June',
unset($sbox); 'July','August','September','October','November','December'
);
$month = $holiday['month'] ? lang($monthnames[$holiday['month']]) : '';
if (!$holiday['day']) if (!$holiday['day'])
{ {