Hi, I'm using sugar and when I login, I receive this warning:
Notice: Undefined index: listviews in D:\Apache\htdocs\sugar\include\database\DBManagerF actory.php on line 65
I can do all without problem but I don't know why I receive this notice.
I search in the code and in include/listview/listviewdata.php there is the function that call the function that makes the warning
function ListViewData() {
$this->limitName = 'list_max_entries_per_page';
$this->db = &DBManagerFactory::getInstance('listviews');
}
this is the function where the warning is happening. include/database/DbManagerFactory.php
public static function getInstance(
$instanceName = ''
)
{
global $sugar_config, $dbinstances;
static $count, $old_count;
if(isset($instanceName) && $instanceName != ''){
$config = $sugar_config['db'][$instanceName]; //here is the problem!!
}else{
$instanceName = 'db';
Any idea is welcome !!
Thanks


LinkBack URL
About LinkBacks



Reply With Quote

Bookmarks