Changeset 2566:9bf417837888 for inc/core/class.dc.utils.php
- Timestamp:
- 11/17/13 20:25:53 (12 years ago)
- Branch:
- 2.6
- Children:
- 2567:6c11245cbf04, 2568:61c67a7d17fa
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
inc/core/class.dc.utils.php
r2388 r2566 24 24 <var>user_id</var>, <var>user_name</var>, <var>user_firstname</var> and 25 25 <var>user_displayname</var>. 26 26 27 27 @param user_id <b>string</b> User ID 28 28 @param user_name <b>string</b> User's name … … 36 36 return $user_displayname; 37 37 } 38 38 39 39 if (!empty($user_name)) { 40 40 if (!empty($user_firstname)) { … … 46 46 return $user_firstname; 47 47 } 48 48 49 49 return $user_id; 50 50 } 51 51 52 52 /** 53 53 Cleanup a list of IDs 54 54 55 55 @param ids <b>mixed</b> ID(s) 56 56 @return <b>array</b> … … 59 59 { 60 60 $clean_ids = array(); 61 61 62 62 if (!is_array($ids)) { 63 63 $ids = array($ids); 64 64 } 65 65 66 66 foreach($ids as $id) 67 67 { 68 68 $id = abs((integer) $id); 69 69 70 70 if (!empty($id)) { 71 71 $clean_ids[] = $id; … … 98 98 } 99 99 } 100 101 ?>
Note: See TracChangeset
for help on using the changeset viewer.