Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-10233

Undefined index: CiviReport in CRM_Admin_Page_Admin->run()

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Trivial
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.1.2
    • Fix Version/s: 4.2.0
    • Component/s: CiviReport
    • Labels:
      None

      Description

      On the Administer CiviCRM page, we get this warning:

      Notice: Undefined index: CiviReport in CRM_Admin_Page_Admin->run() (line 108 of /ebs/www/crm.primaryimmune.org/htdocs/sites/all/modules/civicrm/CRM/Admin/Page/Admin.php).

      The problem is the $values array may not contain all $group variables. On this same like, I did this:
      if(isset($values[$group]))

      { $adminPanel[$group] = $values[$group]; $adminPanel[$group]['show' ] = $v['show']; $adminPanel[$group]['hide' ] = $v['hide']; $adminPanel[$group]['title'] = $title; }

      else

      { $adminPanel[$group] = array(); $adminPanel[$group]['show'] = ''; $adminPanel[$group]['hide'] = ''; $adminPanel[$group]['title'] = $title; }

      I know its not a huge deal, but thought I would make someones life easier.

        Attachments

          Activity

            People

            • Assignee:
              lobo Donald A. Lobo
              Reporter:
              iandev Ian
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 10 minutes
                10m
                Remaining:
                Remaining Estimate - 10 minutes
                10m
                Logged:
                Time Spent - Not Specified
                Not Specified