Democratic Pools — warnings in debug mode on Poll’s Theme tab
Hello, really wonderfull plugin! A master-piece!
Easy fix required: when you access Poll's Theme tab in debug mode and there are no pools:
Notice: Trying to get property of non-object in /home/mhd-01/www.gin-it.com/htdocs/wordpress/wp-content/plugins/democracy-poll/admin/admin_page.php on line 53
Warning: Invalid argument supplied for foreach() in /home/mhd-01/www.gin-it.com/htdocs/wordpress/wp-includes/functions.php on line 3369
I'm using @ admin_page.php on line 53:
$answers = is_object( $poll->poll ) ? (array) wp_list_pluck( $poll->poll->answers, 'aid') : false;