From 8816e1dcaa3d533847f878e2546a6691e72d4485 Mon Sep 17 00:00:00 2001 From: Matthew Bucci Date: Sat, 28 Oct 2023 02:50:05 -0700 Subject: [PATCH] replace incorrect constant --- pg4wp/driver_pgsql.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pg4wp/driver_pgsql.php b/pg4wp/driver_pgsql.php index 151035b..c0f3f6b 100644 --- a/pg4wp/driver_pgsql.php +++ b/pg4wp/driver_pgsql.php @@ -183,7 +183,7 @@ $res = pg_query($sql); if( false !== $res) $data = pg_fetch_result($res, 0, 0); - elseif( PG4WP_DEBUG || PG4WP_ERROR_LOG) + elseif( PG4WP_DEBUG || PG4WP_LOG) { $log = '['.microtime(true)."] wpsql_insert_id() was called with '$table' and '$ins_field'". " and returned the error:\n".pg_last_error().