From 9941de8398715f5ddbb9bd223f583feda12ffd5b Mon Sep 17 00:00:00 2001
From: Tom Lake <tswsl1989@sucs.org>
Date: Tue, 17 Sep 2013 19:29:20 +0000
Subject: [PATCH] Add a cast to stop PHP spewing warnings

---
 lib/punbb/include/dblayer/pgsql.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/punbb/include/dblayer/pgsql.php b/lib/punbb/include/dblayer/pgsql.php
index 5f94eec..9ee0f2e 100644
--- a/lib/punbb/include/dblayer/pgsql.php
+++ b/lib/punbb/include/dblayer/pgsql.php
@@ -122,7 +122,7 @@ class DBLayer
 
 			++$this->num_queries;
 
-			$this->last_query_text[$this->query_result] = $sql;
+			$this->last_query_text[(int)$this->query_result] = $sql;
 
 			return $this->query_result;
 		}
-- 
GitLab