Thanks a lot for your help. The change you suggested, got rid of the error on inc_main_ui_2.php, but the documents are still not being displayed to the intended users.
I noticed there are errors in other areas of this module. This version (1.91) of DMS is full of bugs and not fit for production.
Regards,
Abu