From ccb660ca86d3e3250b852badd17877dc7302e6f4 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Tue, 27 Mar 2007 02:18:47 +0000 Subject: [PATCH] r1522: Adding a PHP4 constructor to the Authentication class --- docs/changes.txt | 1 + includes/auth/auth.php | 9 +++++++++ 2 files changed, 10 insertions(+) diff --git a/docs/changes.txt b/docs/changes.txt index 9ce820a..eba7b4c 100644 --- a/docs/changes.txt +++ b/docs/changes.txt @@ -1,6 +1,7 @@ 1.2.0 Beta 3 =============================== - Fixed: If Gettext isn't installed, a function-not-found error would be thrown +- Fixed: On PHP4 systems, a "call to member non-object" error would be thrown because the Authentication class does not have a PHP4 constructor 1.2.0 Beta 2 =============================== diff --git a/includes/auth/auth.php b/includes/auth/auth.php index 6326cf3..8480ee7 100644 --- a/includes/auth/auth.php +++ b/includes/auth/auth.php @@ -92,6 +92,15 @@ class Authentication $this->_setupDatabase(); } + // ################################################################### + /** + * (PHP 4) Constructor + */ + function Authentication() + { + $this->__construct(); + } + // ################################################################### /** * Returns the information array for the Bugdar user. This must be -- 2.22.5