equal
deleted
inserted
replaced
75 $this->lang_code = $lang; |
75 $this->lang_code = $lang; |
76 return true; |
76 return true; |
77 } |
77 } |
78 if ( is_string($lang) ) |
78 if ( is_string($lang) ) |
79 { |
79 { |
80 $sql_col = 'lang_code="' . $db->escape($lang) . '"'; |
80 $sql_col = 'lang_code=\'' . $db->escape($lang) . '\''; |
81 } |
81 } |
82 else if ( is_int($lang) ) |
82 else if ( is_int($lang) ) |
83 { |
83 { |
84 $sql_col = 'lang_id=' . $lang . ''; |
84 $sql_col = 'lang_id=' . $lang . ''; |
85 } |
85 } |
130 { |
130 { |
131 $strings = array(); |
131 $strings = array(); |
132 do |
132 do |
133 { |
133 { |
134 $cat =& $row['string_category']; |
134 $cat =& $row['string_category']; |
135 if ( !is_array($strings[$cat]) ) |
135 if ( !is_array(@$strings[$cat]) ) |
136 { |
136 { |
137 $strings[$cat] = array(); |
137 $strings[$cat] = array(); |
138 } |
138 } |
139 $strings[$cat][ $row['string_name'] ] = $row['string_content']; |
139 $strings[$cat][ $row['string_name'] ] = $row['string_content']; |
140 } |
140 } |