Skip to content

Commit 6a45e10

Browse files
Fix PHP Fatal error call to undefined function pg_fetch_array()
1 parent fbe62ed commit 6a45e10

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

CHANGES.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ Changes in 11.4.4
55
-----------------
66
- Fix SQL transcript_grades view for History Marking Periods of existing school years in rosariosis.sql, rosariosis_mysql.sql & Update.fnc.php
77
- Fix regression since 11.4 check MP exists before trying to get GPA: include History Marking Periods in Grades.fnc.php
8+
- Fix PHP Fatal error call to undefined function pg_fetch_array() in database.inc.php & AccessLog.php
89

910
Changes in 11.4.3
1011
-----------------

database.inc.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -255,10 +255,12 @@ function db_fetch_row( $result )
255255

256256
$return = false;
257257

258-
if ( $DatabaseType === 'mysql'
259-
&& $result instanceof mysqli_result )
258+
if ( $DatabaseType === 'mysql' )
260259
{
261-
$return = mysqli_fetch_assoc( $result );
260+
if ( $result instanceof mysqli_result )
261+
{
262+
$return = mysqli_fetch_assoc( $result );
263+
}
262264
}
263265
else
264266
{

modules/School_Setup/AccessLog.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
{
4343
// Only requested modname.
4444
// @since 11.4 Automatically clear Access Log entries older than one year
45-
DBGet( "DELETE FROM access_log
45+
DBQuery( "DELETE FROM access_log
4646
WHERE CREATED_AT<'" . date( 'Y-m-d', strtotime( '1 year ago' ) ) . "'" );
4747
}
4848

0 commit comments

Comments
 (0)