Changeset 3245050
- Timestamp:
- 02/22/2025 09:23:33 PM (13 months ago)
- Location:
- stafflist/trunk
- Files:
-
- 2 edited
-
readme.txt (modified) (1 diff)
-
stafflist.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
stafflist/trunk/readme.txt
r3232922 r3245050 103 103 104 104 == Changelog == 105 = 3.2.5 = 106 * Fixed deprecation warnings that appeared in PHP8+, found by @thomasprice61 (thank you); 107 105 108 = 3.2.4 = 106 109 * Security updates recommended by Colin Xu (thank you); -
stafflist/trunk/stafflist.php
r3232922 r3245050 4 4 Plugin URI: http://wordpress.org/plugins/stafflist/ 5 5 Description: A super simplified staff directory tool 6 Version: 3.2. 46 Version: 3.2.5 7 7 Author: era404 8 8 Author URI: http://www.era404.com … … 826 826 //columns to use 827 827 if(!$allcols){ 828 $allcols = array(); 828 829 $nonstd = $wpdb->get_results("SELECT id,name,colpos,active, 829 830 CASE WHEN id<6 THEN name ELSE concat('col',id) END AS col … … 843 844 foreach($allcols as $ck=>$ct){ 844 845 if(trim($ct)=="") continue; //skip unassigned columns 845 if(array_key_exists($ck, $s) && trim($s[ $ck ] )!="" && !is_null($s[ $ck ])){846 if(array_key_exists($ck, $s) && trim($s[ $ck ]??"")!="" && !is_null($s[ $ck ])){ 846 847 //handling for images 847 848 if(substr($s[ $ck ],0,4)=="img:"){ 848 849 $t[ 'img' ] = strip_tags(trim(substr($s[ $ck ],4))); 849 850 } else { 850 $t[ $ct ] = str_replace("'", ''', trim($s[ $ck ] ));851 $t[ $ct ] = str_replace("'", ''', trim($s[ $ck ]??"")); 851 852 } 852 853 }
Note: See TracChangeset
for help on using the changeset viewer.