From 7d84569b53e05f19b6d2624245a4476ba8a03c83 Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Tue, 2 Jun 2020 15:16:10 +0200 Subject: declare static func as such --- it_dbi.class | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'it_dbi.class') diff --git a/it_dbi.class b/it_dbi.class index 5b35fc1..2d4be89 100644 --- a/it_dbi.class +++ b/it_dbi.class @@ -112,7 +112,7 @@ function __construct($p = array(), $query = null) * Factory: Create classes of all database tables. Call statically. * @param $p array(key => value) of configuration data */ -function createclasses($p = array()) +static function createclasses($p = array()) { # Make sure singleton exists $dbi = $GLOBALS['it_dbi'] ? $GLOBALS['it_dbi'] : new it_dbi($p); -- cgit v1.2.3