Jump to content

Null is null


rashmi_k28

Recommended Posts

function CP_addDisabledDates(start, end){
        if(arguments.length==1){
                end=start;
        }
        if(start==null && end==null){return;}
        if(this.disabledDatesExpression!=""){
                this.disabledDatesExpression+= "||";
        }
        if(start!=null){
                start = parseDate(start);
                start=""+start.getFullYear()+LZ(start.getMonth()+1)+LZ(start.getDate());
        }
        if(end!=null){
                end=parseDate(end);
                end=""+end.getFullYear()+LZ(end.getMonth()+1)+LZ(end.getDate());
        }
        if(start==null){
                this.disabledDatesExpression+="(ds<="+end+")";
        }
        else if(end  ==null){
                this.disabledDatesExpression+="(ds>="+start+")";
        }
        else{
                this.disabledDatesExpression+="(ds>="+start+"&&ds<="+end+")";
        }
}

 

I am getting an error as

 

NULL is null or not an object

Link to comment
https://forums.phpfreaks.com/topic/117487-null-is-null/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.