ndlibersa / resources

**DEPRECATED** MOVED TO https://github.com/Coral-erm/Coral
GNU General Public License v3.0
9 stars 19 forks source link

Create util.php with is_null_date() function #29

Closed nkuitse closed 9 years ago

nkuitse commented 10 years ago

Factor out null date checks ("0000-00-00" or "")

nkuitse commented 10 years ago

There are a lot of places where dates are compared with "0000-00-00" and "". I've factored these out into a new is_null_date() function, which is in a new file (util.php) that I may start putting some other stuff in.

remocrevo commented 10 years ago

I moved the new function to directory.php, since there are similar utility functions there. And that prevents us from having to worry about where to include a new util.php file. This has been added to master, so this pull request can be closed.