ЗАМЕЧАНИЕ: Undefined variable: result...

#
ЗАМЕЧАНИЕ: Undefined variable: result...
ссылка:
_http://имя_сайта/info/portfolio/

ошибка:
ЗАМЕЧАНИЕ: Undefined variable: result в файле путь_до_cms\lib\lib_1\lib_1.php (строка 130)
#
Re: ЗАМЕЧАНИЕ: Undefined variable: result...
В строке 130 файла lib_1.php, поставляемого вместе с релизом системы, переменной $result вообще не обнаружено. Приведите полный код этого файла, пожалуйста.
#
Re: ЗАМЕЧАНИЕ: Undefined variable: result...
row_130
if($result['group'] == 0)


all_file
<?php

// Получаем информацию о текущем пользователе
if (class_exists('SiteUsers'))
{
   $SiteUsers = & singleton('SiteUsers');
   $site_user_id = $SiteUsers->GetCurrentSiteUser();
}
else
{
   $site_user_id = 0;
}

/* Массив внешних параметров, передаваемых в XML */
$external_propertys = array();

/* Добавление комментария */
// ShowAddComment == 1 - только авторизированные
// ShowAddComment == 2 - все
if (isset($_POST['add_comment'])
&& (($GLOBALS['LA']['ShowAddComment'] == 1 && $site_user_id > 0) || $GLOBALS['LA']['ShowAddComment'] == 2))
{
   $param['information_items_id'] = to_int($GLOBALS['InformationResult']['item_id']);

   /* XSL шаблон для отправки уведомления администратору о добавлении комментария */
   $param['admin_email_xsl'] = to_str($GLOBALS['LA']['xsl_admin_email']);

   $xsl_add_comment = to_str($GLOBALS['LA']['xsl_add_comment']);

   /* Режим добавления комментария:
   1 - публиковать сразу,
   0 - публиковать после проверки.*/
   if (to_bool($GLOBALS['LA']['TypeAddComment'])/* || $site_user_id > 0*/)
   {
      $param['status'] = 1;
   }
   else
   {
      $param['status'] = 0;
   }

   // Текст комментария
   $_POST['comment_text'] = nl2br(to_str($_POST['comment_text']));

   // Типографируем текст, если доступен модуль типографирования
   if (class_exists('typograph'))
   {
      $typograph = new typograph();
      $_POST['comment_text'] = $typograph->ProcessTypographic($_POST['comment_text']);
   }

   $param['comment_mail_type'] = to_int($GLOBALS['LA']['comment_mail_type']);

   // ID родительского комментария
   $param['comment_parent_id'] = to_int($_POST['comment_parent_id']);
   
   $param['comment_autor'] = to_str($_POST['comment_autor']);
   $param['comment_email'] = to_str($_POST['comment_email']);
   $param['comment_subject'] = to_str($_POST['comment_subject']);
   $param['comment_text'] = to_str($_POST['comment_text']);
   $param['comment_grade'] = to_int($_POST['comment_grade']);
   $param['allowable_tags'] = '<b><strong><i><u><strike><ul><ol><li>';
   
   ob_start();
   $GLOBALS['LA_InformationSystem']->ShowAddComment('УведомлениеДобавлениеКомментария', $param);
   $external_propertys['message'] = ob_get_clean();
}

$InformationSystem_id = to_int($GLOBALS['InformationSystem_id']);

// XSL шаблон для отображения списка элементов информационной системы
$xsl_list = to_str($GLOBALS['LA']['xsl_information_system_list']);

// XSL шаблон для отображения элемента информационной системы
$xsl_item = to_str($GLOBALS['LA']['xsl_information_item']);

$InformationResult = $GLOBALS['InformationResult'];

$external_propertys['ОтображатьСсылкуНаАрхив'] = 0;
$external_propertys['ОтображатьСсылкиНаСледующиеСтраницы'] = 1;

// Массив дополнительных параметров
$property = array();

// Число элементов на страницу
if (isset($InformationResult['items_on_page']))
{
   if ($InformationResult['items_on_page'] !== true)
   {
      $InformationResult['items_on_page'] = to_int($InformationResult['items_on_page']);
   }
}
else
{
   $InformationResult['items_on_page'] = 10;
}

/* Номер, с которого начинается показ */
if (isset($InformationResult['items_begin']))
{
   $InformationResult['items_begin'] = to_int($InformationResult['items_begin']);
}
else
{
   $InformationResult['items_begin'] = 0;
}

/* Метод определения идентификатора информационной группы и идентификатора информационного элемента по значению URI */
//$result = $GLOBALS['LA_InformationSystem']->GetInformationFromPath($InformationSystem_id);

if ($GLOBALS['INFSYS_result'] != false)
{
   /* Вывод списка */
   if ($GLOBALS['INFSYS_result']['item'] == false)
   {
      // Если передано имя тэга - фильтруем
      if (isset($GLOBALS['INFSYS_result']['tag_name']))
      {
         $oTag = & singleton('Tag');

         $tag_row = $oTag->GetTagByName($GLOBALS['INFSYS_result']['tag_name']);

         $property['tags'] = array($tag_row['tag_id']);

         // При выводе тэгов вывод элементов ведется из всех групп
         $GLOBALS['INFSYS_result']['group'] = false;
      }

      /* Отображаем информационную систему */
      if($result['group'] == 0)
{
$result['group']=false;
$InformationResult['items_on_page']=5;
$property['OrderField']='information_items_date';
$property['Order'] = 'DESC';
$external_propertys['ОтображатьСсылкиНаСледующиеСтраницы'] = 0;
};
$GLOBALS['LA_InformationSystem']->ShowInformationSystem($InformationSystem_id, $result['group'], $xsl_list, $InformationResult['items_on_page'], $InformationResult['items_begin'], $external_propertys, $property);
   }
   else
   {
      /* Определяем идентификатор информационного элемента */
      $item_id = $GLOBALS['LA_InformationSystem']->GetIdInformationItem($GLOBALS['INFSYS_result']['item'], $GLOBALS['INFSYS_result']['group'], $InformationSystem_id);

      if (to_bool($GLOBALS['LA']['ShowComments']))
      {
         $external_propertys['show_comments'] = '1';
      }
      else
      {
         $external_propertys['show_comments'] = '0';
      }

      // Кому разрешено добавление комментария
      $external_propertys['show_add_comments'] = to_int($GLOBALS['LA']['ShowAddComment']);

      // Выводим элемент информационной системы
      $GLOBALS['LA_InformationSystem']->ShowInformationSystemItem($item_id, $xsl_item, $external_propertys,
      array('part' => $GLOBALS['part_ii']));
   }
}

?>
#
Re: ЗАМЕЧАНИЕ: Undefined variable: result...
if($result['group'] == 0)
{
$result['group']=false;
$InformationResult['items_on_page']=5;
$property['OrderField']='information_items_date';
$property['Order'] = 'DESC';
$external_propertys['ОтображатьСсылкиНаСледующиеСтраницы'] = 0;
};
- подобный код в файле lib_1.php по умолчанию отсутствует.
Очевидно, он был добавлен вами самостоятельно. При этом допущена ошибка: используется необъявленный массив $result
#
Re: ЗАМЕЧАНИЕ: Undefined variable: result...
понял, буду думать . . .
Авторизация