telerim/Zhen-CRM — pull request #5 by oldskool (2012-05-02 20:05:17+00:00)
Title: Layout checks

Added some checks in the layout to determine the existence of the $Tr variable. In some cases (like when an Exception/Error is thrown), the $Tr variable is not set and the logs (and screen if display_errors is on) is flooded with "Undefined variable" errors. These adjustments fix that.