I'm attemping to correct an issue with our WordPress template. Here is the error it's spitting out at me... Line 334 is red in the code below. That's where I believe my issue is. I'm fairly new at the coding side, I've been a designer for quite some time however, so please be easy on me lol. Thanks in advance!

Using WordPress 3.3.1 / Theme up-to-date as well / "Warp" framework by YooTheme

Link to page: http://mxvsatv.derekfoulk.com/


Warning: Invalid argument supplied for foreach() in /xxxx/xxxx/xxxx/xxxx/wp-content/themes/yoo_corona_wp/warp/systems/wordpress.3.0/helpers/system.php on line 334

/*
Function: getWidgets
Retrieve widgets

Parameters:
$position - Position

Returns:
Array
*/
function getWidgets($position = null) {

if (empty($this->widgets)) {
foreach (wp_get_sidebars_widgets() as $pos => $ids) {
$this->widgets[$pos] = array();
foreach ($ids as $id) {
$this->widgets[$pos][$id] = $this->getWidget($id);
}
}
}

if (!is_null($position)) {
return isset($this->widgets[$position]) ? $this->widgets[$position] : array();
}

return $this->widgets;
}

/*
Function: displayWidget
Checks if a widget should be displayed

Returns:
Boolean
*/
function displayWidget($widget) {
if (!isset($widget->options['display']) || in_array('*', $widget->options['display'])) return true;

foreach ($this->getQuery() as $q) {
if (in_array($q, $widget->options['display'])) {
return true;
}
}

return false;
}