Menu

#1 Application.pm leaving behind errors

open
nobody
None
5
2002-01-14
2002-01-14
No

Application.pm seems to be leaving behind errors by
using numeric equality searches on text input.

This bug

Application.pm 463:
if($_[0]->{enddate} != 0){

should be

if($_[0]->{enddate} ne '0000-00-00'){

and at 469:

if($_[0]->{endtime} != 0){

should be

if($_[0]->{endtime} ne '00:00'){

Reasoning: Dates are stored as text in database, and
not numerics.

Also should be changed for Admin.pm, 774, 783 and
PDA.pm 151, 157.

Discussion


Log in to post a comment.

Monday.com Logo