Changeset 20805
- Timestamp:
- Feb 18, 2013, 1:31:56 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/include/functions.php
r20544 r20805 2130 2130 } 2131 2131 2132 /* 2133 * get tags list from SQL query (ids are surrounded by ~~, for get_tag_ids()) 2134 * @param string: query 2135 * @param boolean: only_user_language, if true, only local name is returned for multilingual tags 2136 */ 2132 2137 function get_taglist($query, $only_user_language=true) 2133 2138 { … … 2170 2175 } 2171 2176 2177 /* 2178 * get tags ids from a list of raw tags (existing tags or new tags) 2179 * @param mixed: raw_tags, array or comma separated string 2180 * @param boolean: allow_create 2181 */ 2172 2182 function get_tag_ids($raw_tags, $allow_create=true) 2173 2183 { … … 2178 2188 2179 2189 $tag_ids = array(); 2180 $raw_tags = explode(',',$raw_tags); 2190 if (!is_array($raw_tags)) 2191 { 2192 $raw_tags = explode(',',$raw_tags); 2193 } 2181 2194 2182 2195 foreach ($raw_tags as $raw_tag)
Note: See TracChangeset
for help on using the changeset viewer.