rashmi_k28 Posted July 31, 2008 Share Posted July 31, 2008 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 More sharing options...
paul2463 Posted July 31, 2008 Share Posted July 31, 2008 Have a look <a href="http://lists.evolt.org/archive/Week-of-Mon-20050214/169524.html"> Here </A> Link to comment https://forums.phpfreaks.com/topic/117487-null-is-null/#findComment-604342 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.