PHP Error
-
Hi,
I need assistance with a PHP error. The log says:
[23-Jun-2019 09:46:30 UTC] PHP Warning: Invalid argument supplied for foreach() in /home/fbm22apr/public_html/wp-content/plugins/content-control/classes/Shortcodes.php on line 69
Here is the code written inside.
61 /** 62 * Takes empty attributes and sets them to true. 63 * 64 * @param $atts 65 * 66 * @return mixed 67 */ 68 public static function normalize_empty_atts( $atts ) { 68 foreach ( $atts as $attribute => $value ) { 69 if ( is_int( $attribute ) ) { 70 $atts[ strtolower( $value ) ] = true; 71 unset( $atts[ $attribute ] ); 72 } 73 } 74 75 return $atts; 76 }
The page I need help with: [log in to see the link]
Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
- The topic ‘PHP Error’ is closed to new replies.