我收到以下警告:阵列错误/警告
Warning: reset() expects parameter 1 to be array, null given in /data/9/1/115/118/1767118/user/1910351/htdocs/aw/home/wp-content/themes/awthemesnew/library/sidebars.php on line 183
记住我编辑wordpress的PHP文件。以下是183行的完整代码:
function theme_print_sidebar($name, $places) {
$style = theme_get_option('theme_sidebars_style_' . $name);
$place_count = count($places);
if ($name != 'footer' && $place_count < 2) {
theme_print_widgets(reset($places), $style);
return;
}
?>
帮助。谢谢!
以下是发生错误的页面:http://www.aromaticwaters.com/home/product-category/diffusers/ – user2184436 2013-03-20 19:54:19