Skip to content

Commit

Permalink
Merge pull request #17 from demianr/master
Browse files Browse the repository at this point in the history
PHP 7 generates E_DEPRECATED for old style constructor
  • Loading branch information
samcleaver authored Nov 14, 2016
2 parents d24a04f + 6516997 commit 6d7b22c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions phpgsb.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ class phpGSB
private $dbLink; // mysql connection link
//GENERIC FUNCTIONS (USED BY BOTH LOOKUP AND UPDATER)
/*Automatically connect to database on calling class*/
function __construct($database=false,$username=false,$password=false,$host="localhost",$port=3306,$verbose=true)
{
$this->phpGSB($database, $username, $password, $host, $port, $verbose);
}
function phpGSB($database=false,$username=false,$password=false,$host="localhost",$port=3306,$verbose=true)
{
if(!$verbose)
Expand Down

0 comments on commit 6d7b22c

Please sign in to comment.