Have a question about CiviCRM? Get it answered quickly at the new CiviCRM Stack Exchange Q+A siteThis forum was archived on 25 November 2017. Learn more.How to get involved.What to do if you think you've found a bug.
$sql = $select . ' ' . $clause; $dao = CRM_Core_DAO::executeQuery( $sql ); if (! $dao->fetch( ) ) { $statistics['groups2'][$i] = array( 'title' => '', 'value' => '</td><td>There were no notes entered for the date range selected.</td><td>' ); } else { $i = 0; while ( $dao->fetch( ) ) { $statistics['groups2'][$i] = array( 'title' => '', 'value' => $dao->n_date . '</td><td>' . $dao->n_name . '</td><td>' . $dao->n_note ); $i++; } } return $statistics;
$sql = $select . ' ' . $clause; $dao = CRM_Core_DAO::executeQuery( $sql ); $i = 0; while ( $dao->fetch( ) ) { $statistics['groups2'][$i] = array( 'title' => '', 'value' => $dao->n_date . '</td><td>' . $dao->n_name . '</td><td>' . $dao->n_note ); $i++; } if (count($statistics['groups2']) == 0 || !(isset($statistics['groups2']))) { $statistics['groups2'][$i] = array( 'title' => '', 'value' => '</td><td>There were no notes entered for the date range selected.</td><td>' ); } return $statistics; }