MantisBT: master c7ceb3d2
| Author | Committer | Branch | Timestamp | Parent |
|---|---|---|---|---|
| Julian Fitzell | master | 2002-11-26 21:45 | master 9c7bbf35 | |
| Changeset | Replace all instances of empty() with our new function called is_blank(). empty() is a horrid function which isn't intended for checking strings. It is intended for checking whether a variable is unset or false (or rather anything that == false, which includes 0 and ''). In every case, as far as we can tell, we are not checking for this but rather for whether the string contains information. So this function first performs trim() on the string and then checks whether the length is 0. The patch was submitted by Robert Foster rfoster@mountainvisions.com.au at my request. git-svn-id: http://mantisbt.svn.sourceforge.net/svnroot/mantisbt/trunk@1626 <a class="text" href="/?p=mantisbt.git;a=object;h=f5dc347c">f5dc347c</a>-c33d-0410-90a0-b07cc1902cb9 |
|||
| mod - core/icon_api.php | Diff File | |||
| mod - core/filter_api.php | Diff File | |||
| mod - manage_proj_cat_add.php | Diff File | |||
| mod - core/file_api.php | Diff File | |||
| mod - bug_view_page.php | Diff File | |||
| mod - manage_page.php | Diff File | |||
| mod - bug_update.php | Diff File | |||
| mod - bugnote_add.php | Diff File | |||
| mod - login_page.php | Diff File | |||
| mod - account_update.php | Diff File | |||
| mod - core/project_api.php | Diff File | |||
| mod - core/html_api.php | Diff File | |||
| mod - manage_user_create.php | Diff File | |||
| mod - manage_proj_ver_add.php | Diff File | |||
| mod - signup.php | Diff File | |||
| mod - print_all_bug_page.php | Diff File | |||
| mod - core/access_api.php | Diff File | |||
| mod - print_all_bug_page_excel.php | Diff File | |||
| mod - manage_proj_attribute_add.php | Diff File | |||
| mod - core/email_api.php | Diff File | |||
| mod - core/lang_api.php | Diff File | |||
| mod - core/print_api.php | Diff File | |||
| mod - set_project.php | Diff File | |||
| mod - bug_view_advanced_page.php | Diff File | |||
| mod - print_all_bug_page_word.php | Diff File | |||
| mod - account_prefs_inc.php | Diff File | |||
| mod - manage_proj_attribute_update.php | Diff File | |||