1.2RC8 bug: Calendar default divisions, division by zero

Hi,
I just reinstalled egw 1.2RC8 and contrib then did a cvs update.
I am running
Debian sarge,
apache2
php5
mysql

When first going to calendar view i see an error message and all time slots
are labelled as 09:00.
Error is:
Warning: Division by zero in
/var/www/egroupware/calendar/inc/class.uiviews.inc.php on line 601
times show 9.00 for all slots!

On looking at the code it appears that the default granularity is not set on
install.

If I edit preferences and set a granularity time of eg60 then the error
disappears. If I reset granularity=default then the error reappears.


This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642


eGroupWare-users mailing list
eGroupWare-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/egroupware-users

Hi,

when you first login to calendar it checks for reasonable default prefs
and sets eg. the interval to 30min. Only if you reset it to “no default”
(=0) you get this error, during the same session.

I changed it now in cvs, that the check is done on each page request.

Ralf

systematic schrieb:

Hi,
I just reinstalled egw 1.2RC8 and contrib then did a cvs update.
I am running
Debian sarge,
apache2
php5
mysql

When first going to calendar view i see an error message and all time slots
are labelled as 09:00.
Error is:
Warning: Division by zero in
/var/www/egroupware/calendar/inc/class.uiviews.inc.php on line 601
times show 9.00 for all slots!

On looking at the code it appears that the default granularity is not set on
install.

If I edit preferences and set a granularity time of eg60 then the error
disappears. If I reset granularity=default then the error reappears.


This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=k&kid0944&bid$1720&dat1642


eGroupWare-users mailing list
eGroupWare-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/egroupware-users

–
eGroupWare Training & Support ==> http://www.egroupware-support.de


This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642


eGroupWare-users mailing list
eGroupWare-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/egroupware-users