浏览代码

Define the text array before it is used.

markjcrane 9 年之前
父节点
当前提交
08f42c62fb
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      resources/classes/text.php

+ 4 - 0
resources/classes/text.php

@@ -29,6 +29,10 @@ class text {
 	 * @var string $app_path		examples: app/exec or core/domains
 	 * @var string $app_path		examples: app/exec or core/domains
 	 */
 	 */
 	public function get($language_code = null, $app_path = null, $exclude_global = false) {
 	public function get($language_code = null, $app_path = null, $exclude_global = false) {
+
+		//define the text array
+			$text = array();
+
 		//get the global app_languages.php
 		//get the global app_languages.php
 			if (!$exclude_global){
 			if (!$exclude_global){
 				include $_SERVER["PROJECT_ROOT"]."/resources/app_languages.php";
 				include $_SERVER["PROJECT_ROOT"]."/resources/app_languages.php";