diff --git a/CHANGES.md b/CHANGES.md index 9d68c56a9..e2346d71c 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -5,6 +5,7 @@ Changes in 11.4.4 ----------------- - Fix SQL transcript_grades view for History Marking Periods of existing school years in rosariosis.sql, rosariosis_mysql.sql & Update.fnc.php - Fix regression since 11.4 check MP exists before trying to get GPA: include History Marking Periods in Grades.fnc.php +- Fix PHP Fatal error call to undefined function pg_fetch_array() in database.inc.php & AccessLog.php Changes in 11.4.3 ----------------- diff --git a/database.inc.php b/database.inc.php index aee7beb4b..1ebecab78 100644 --- a/database.inc.php +++ b/database.inc.php @@ -255,10 +255,12 @@ function db_fetch_row( $result ) $return = false; - if ( $DatabaseType === 'mysql' - && $result instanceof mysqli_result ) + if ( $DatabaseType === 'mysql' ) { - $return = mysqli_fetch_assoc( $result ); + if ( $result instanceof mysqli_result ) + { + $return = mysqli_fetch_assoc( $result ); + } } else { diff --git a/modules/School_Setup/AccessLog.php b/modules/School_Setup/AccessLog.php index ff8f62c30..d24dfb67a 100644 --- a/modules/School_Setup/AccessLog.php +++ b/modules/School_Setup/AccessLog.php @@ -42,7 +42,7 @@ { // Only requested modname. // @since 11.4 Automatically clear Access Log entries older than one year - DBGet( "DELETE FROM access_log + DBQuery( "DELETE FROM access_log WHERE CREATED_AT<'" . date( 'Y-m-d', strtotime( '1 year ago' ) ) . "'" ); }