From cf198caf5a60fd393580ea5d6959eab9ce33d961 Mon Sep 17 00:00:00 2001 From: Andre Lorbach Date: Tue, 6 Dec 2011 16:23:01 +0100 Subject: [PATCH] Fixed issue in logstream source check function of report base class --- src/classes/reports/report.class.php | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/src/classes/reports/report.class.php b/src/classes/reports/report.class.php index a84f799..1b6a74f 100644 --- a/src/classes/reports/report.class.php +++ b/src/classes/reports/report.class.php @@ -695,10 +695,14 @@ abstract class Report { if ($res != SUCCESS ) return $res; - // Will check if certain INDEXES do exists for database logstream! - $res = $this->_streamObj->VerifyIndexes( $arrProperties ); - if ($res != SUCCESS ) - return $res; + // Will check if TRIGGERS are installed! Requires SUPER access in database logstream! + if ( $arrProperties != null ) + { + // Will check if certain INDEXES do exists for database logstream! + $res = $this->_streamObj->VerifyIndexes( $arrProperties ); + if ($res != SUCCESS ) + return $res; + } // Will check if checksum field is correctly configured for database logstream! $res = $this->_streamObj->VerifyChecksumField( ); @@ -706,9 +710,12 @@ abstract class Report { return $res; // Will check if TRIGGERS are installed! Requires SUPER access in database logstream! - $res = $this->_streamObj->VerifyChecksumTrigger( $myTriggerProperty ); - if ($res != SUCCESS ) - return $res; + if ( $myTriggerProperty != null ) + { + $res = $this->_streamObj->VerifyChecksumTrigger( $myTriggerProperty ); + if ($res != SUCCESS ) + return $res; + } } // return results!